]> git.stg.codes - stg.git/blobdiff - tests/test_conffiles.cpp
Remove (always broken) FreeRADIUS support.
[stg.git] / tests / test_conffiles.cpp
index 0d83abb8ef74d104a52ce239a581084edd6b3176..5936ad36552456c5bbbdefb304e80596554405ed 100644 (file)
@@ -3,9 +3,9 @@
 #include <string>
 #include <fstream>
 
 #include <string>
 #include <fstream>
 
-#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"