Description: use sleep() instead of dummy for loop
 Use sleep(1) instead of a for loop doing dummy calculations.
 Depending on the buildd load this for loop was too fast for
 the test. Test failures were observed on s390x and hppa.
 Could be reproduced on s390x. Upstream will take care
 of a proper fix that does not insert just an arbitrary
 delay. This workaround is ok for Debian for now, because
 we build and test only once per architecture.

--- vnstat-2.4.orig/tests/common_tests.c
+++ vnstat-2.4/tests/common_tests.c
@@ -388,7 +388,6 @@ END_TEST
 
 START_TEST(timeused_tracks_used_time)
 {
-	int i, j = 0;
 	double used;
 
 	defaultcfg();
@@ -396,11 +395,8 @@ START_TEST(timeused_tracks_used_time)
 	used = timeused("quick_func", 1);
 	ck_assert(used == 0.0);
 
-	/* assume that this spends some non-zero time */
-	for (i = 0; i < 10000; i++) {
-		j = j + 2;
-	}
-
+        sleep(1);
+	
 	used = timeused("quick_func", 0);
 	ck_assert(used > 0.0);
 }
