diff options
Diffstat (limited to 'libtests/closed_file_input_source.cc')
-rw-r--r-- | libtests/closed_file_input_source.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtests/closed_file_input_source.cc b/libtests/closed_file_input_source.cc index 9cf5ff04..7309ca31 100644 --- a/libtests/closed_file_input_source.cc +++ b/libtests/closed_file_input_source.cc @@ -65,6 +65,11 @@ int main() std::cout << "testing with ClosedFileInputSource\n"; ClosedFileInputSource cf("input"); do_tests(&cf); + std::cout << "testing with ClosedFileInputSource in stay open mode\n"; + ClosedFileInputSource cf2("input"); + cf2.stayOpen(true); + do_tests(&cf2); + cf2.stayOpen(false); std::cout << "testing with FileInputSource\n"; FileInputSource f; f.setFilename("input"); |