diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index 8637d8a9f..0b1f9dfee 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -536,7 +536,11 @@ struct FileSource : Source { lseek( fd, 0, SEEK_END ); } if ( fd >= 0 ) - Source::sync( s ); + try { + Source::sync( s ); + } catch (...) { + perror("failed to sync"); + } } };