From d63936c2f7959d6fff995ec10c91e24266b8c5d7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 25 Feb 2015 18:56:07 +0000 Subject: Reduce test output noise by hiding some error messages in tests. Should make the Travis logs shorter and more readable. --- test/raidfile/testraidfile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/raidfile/testraidfile.cpp') 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 -- cgit v1.2.3