diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-22 23:14:23 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-22 23:14:23 +0000 |
commit | a384f7c938c69b4e8ff67e4365d3114c5c647608 (patch) | |
tree | 4bb39a314af88b4f1ce92bd481ed15327efc6d56 /test/bbackupd/testbbackupd.cpp | |
parent | eeb55dfde4ed53b40c3aa4eab3aaa9a97861959b (diff) |
Simplify wait code (refs #3)
Diffstat (limited to 'test/bbackupd/testbbackupd.cpp')
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index a99783e8..60e7fbbe 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -65,15 +65,7 @@ void wait_for_backup_operation(int seconds = TIME_TO_WAIT_FOR_BACKUP_OPERATION) { - printf("waiting: "); - fflush(stdout); - for(int l = 0; l < seconds; ++l) - { - sleep(1); - printf("."); - fflush(stdout); - } - printf("\n"); + wait_for_operation(seconds); } int bbstored_pid = 0; |