[Box Backup-dev] COMMIT r615 - box/chris/general/lib/common

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Mon, 5 Jun 2006 13:04:03 +0000 (GMT)


Author: chris
Date: 2006-06-05 13:03:59 +0000 (Mon, 05 Jun 2006)
New Revision: 615

Modified:
   box/chris/general/lib/common/Test.h
Log:
* Test.h
- Moved wait_for_operation from test/backupstorefix


Modified: box/chris/general/lib/common/Test.h
===================================================================
--- box/chris/general/lib/common/Test.h	2006-06-05 13:03:34 UTC (rev 614)
+++ box/chris/general/lib/common/Test.h	2006-06-05 13:03:59 UTC (rev 615)
@@ -372,5 +372,19 @@
 #endif
 }
 
+// Wait a given number of seconds for something to complete
+inline void wait_for_operation(int seconds)
+{
+	printf("waiting: ");
+	fflush(stdout);
+	for(int l = 0; l < seconds; ++l)
+	{
+		sleep(1);
+		printf(".");
+		fflush(stdout);
+	}
+	printf("\n");
+}
+
 #endif // TEST__H