Make "infinite-loop" test app not actually run infinitely.

Otherwise, a failing test will leave a CPU-burning process behind.

Change-Id: Ie9cb2e608f0cb3f1e1ad7491948666f8ac6fc87c
Reviewed-by: Christian Stenger <christian.stenger@digia.com>