aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/closed_file_input_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/closed_file_input_source.cc')
-rw-r--r--libtests/closed_file_input_source.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libtests/closed_file_input_source.cc b/libtests/closed_file_input_source.cc
index ff5354fb..e4c8ed36 100644
--- a/libtests/closed_file_input_source.cc
+++ b/libtests/closed_file_input_source.cc
@@ -73,8 +73,7 @@ main()
do_tests(&cf2);
cf2.stayOpen(false);
std::cout << "testing with FileInputSource\n";
- FileInputSource f;
- f.setFilename("input");
+ FileInputSource f("input");
do_tests(&f);
std::cout << "all assertions passed" << std::endl;
return 0;