]> git.stg.codes - stg.git/blobdiff - tests/test_conffiles.cpp
Remove useles cast.
[stg.git] / tests / test_conffiles.cpp
index e48abaf290adc01392682d6089c235b354e7ae85..5936ad36552456c5bbbdefb304e80596554405ed 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "tut/tut.hpp"
 
 
 #include "tut/tut.hpp"
 
-#include "conffiles.h"
+#include "stg/conffiles.h"
 
 namespace tut
 {
 
 namespace tut
 {
@@ -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"