summaryrefslogtreecommitdiff
path: root/lib/backupstore/StoreTestUtils.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-04-09 22:15:04 +0000
committerChris Wilson <chris+github@qwirx.com>2014-04-09 22:15:04 +0000
commita33620130b6cdff94a387d414a665199dec8813d (patch)
tree7f4a7faac7c141bf1651bf552fd9b5648407db0b /lib/backupstore/StoreTestUtils.h
parent9bb4c01ba28370ef07a43df27834ab02ffbd7dc4 (diff)
Add a utility to check account for errors, expecting that there are some.
Returns the number of errors found and fixed.
Diffstat (limited to 'lib/backupstore/StoreTestUtils.h')
-rw-r--r--lib/backupstore/StoreTestUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/backupstore/StoreTestUtils.h b/lib/backupstore/StoreTestUtils.h
index d8655e63..f65ae3df 100644
--- a/lib/backupstore/StoreTestUtils.h
+++ b/lib/backupstore/StoreTestUtils.h
@@ -51,6 +51,9 @@ bool check_num_files(int files, int old, int deleted, int dirs);
bool check_num_blocks(BackupProtocolCallable& Client, int Current, int Old,
int Deleted, int Dirs, int Total);
+//! Checks an account for errors, returning the number of errors found and fixed.
+int check_account_for_errors(Log::Level log_level = Log::WARNING);
+
//! Checks an account for errors, returning true if it's OK, for use in assertions.
bool check_account(Log::Level log_level = Log::WARNING);