From a33620130b6cdff94a387d414a665199dec8813d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 9 Apr 2014 22:15:04 +0000 Subject: Add a utility to check account for errors, expecting that there are some. Returns the number of errors found and fixed. --- lib/backupstore/StoreTestUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/backupstore/StoreTestUtils.h') 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); -- cgit v1.2.1