]> git.stg.codes - stg.git/blobdiff - tests/test_conffiles.cpp
Public interfaces: part 1
[stg.git] / tests / test_conffiles.cpp
index ee2eeea72aa5e39f8af4eaa8d561d8695ce2d98d..5936ad36552456c5bbbdefb304e80596554405ed 100644 (file)
@@ -62,9 +62,9 @@ namespace tut
         set_test_name("Check empty lines and comments");
 
         {
         set_test_name("Check empty lines and comments");
 
         {
-            ofstream f("/tmp/test.cf");
+            std::ofstream f("/tmp/test.cf");
 
 
-            ensure("Correct construction (part 3)", f);
+            ensure("Correct construction (part 3)", static_cast<bool>(f));
 
             f << "\n"
               << "a=a-string# a string\n"
 
             f << "\n"
               << "a=a-string# a string\n"