diff options
Diffstat (limited to 'libtests')
-rw-r--r-- | libtests/closed_file_input_source.cc | 5 | ||||
-rw-r--r-- | libtests/qtest/closedfile/output | 1 |
2 files changed, 6 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"); diff --git a/libtests/qtest/closedfile/output b/libtests/qtest/closedfile/output index 7a5554af..596d1462 100644 --- a/libtests/qtest/closedfile/output +++ b/libtests/qtest/closedfile/output @@ -1,3 +1,4 @@ testing with ClosedFileInputSource +testing with ClosedFileInputSource in stay open mode testing with FileInputSource all assertions passed |