]> git.stg.codes - stg.git/blobdiff - tests/test_conffiles.cpp
Add Boost to Travis.
[stg.git] / tests / test_conffiles.cpp
index 0d83abb8ef74d104a52ce239a581084edd6b3176..5936ad36552456c5bbbdefb304e80596554405ed 100644 (file)
@@ -3,9 +3,9 @@
 #include <string>
 #include <fstream>
 
-#include <tut/tut.hpp>
+#include "tut/tut.hpp"
 
-#include "conffiles.h"
+#include "stg/conffiles.h"
 
 namespace tut
 {
@@ -62,9 +62,9 @@ namespace tut
         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"