diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-02-25 18:56:07 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-02-25 18:56:07 +0000 |
commit | d63936c2f7959d6fff995ec10c91e24266b8c5d7 (patch) | |
tree | 928d4eb0402f82d7f25d4f4008dc3698881e88c9 /test/raidfile/testraidfile.cpp | |
parent | ca4e4572ca51cce442add6107a59075f76b3aecd (diff) |
Reduce test output noise by hiding some error messages in tests.
Should make the Travis logs shorter and more readable.
Diffstat (limited to 'test/raidfile/testraidfile.cpp')
-rw-r--r-- | test/raidfile/testraidfile.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/raidfile/testraidfile.cpp b/test/raidfile/testraidfile.cpp index 160de5c9..5a62b101 100644 --- a/test/raidfile/testraidfile.cpp +++ b/test/raidfile/testraidfile.cpp @@ -216,6 +216,12 @@ void testReadingFileContents(int set, const char *filename, void *data, int data // Be nasty, and create some errors for the RAID stuff to recover from... if(TestRAIDProperties) { + HideCategoryGuard hide(RaidFileRead::OPEN_IN_RECOVERY); + hide.Add(RaidFileRead::IO_ERROR); + hide.Add(RaidFileRead::RECOVERING_IO_ERROR); + HideSpecificExceptionGuard hex(RaidFileException::ExceptionType, + RaidFileException::ErrorOpeningFileForRead); + char stripe1fn[256], stripe1fnRename[256]; sprintf(stripe1fn, "testfiles" DIRECTORY_SEPARATOR "%d_%d" DIRECTORY_SEPARATOR "%s.rf", set, startDisc, filename); @@ -273,7 +279,6 @@ void testReadingFileContents(int set, const char *filename, void *data, int data DIRECTORY_SEPARATOR ".raidfile-unreadable" DIRECTORY_SEPARATOR "%s", set, (startDisc + 1) % RAID_NUMBER_DISCS, mungefilename); - #ifdef TRF_CAN_INTERCEPT // Test I/O errors on opening |