]> git.localhorst.tv Git - blank.git/blobdiff - tst/io/FilesystemTest.hpp
somewhat self-cleaning temp dir
[blank.git] / tst / io / FilesystemTest.hpp
index 2b30c5e13388c0557537dfc670477f4ab89c5e83..60da69c963f7c45467f38f57eb642db8fd501d21 100644 (file)
@@ -1,11 +1,14 @@
 #ifndef BLANK_TEST_IO_FILESYSTEMTEST_HPP
 #define BLANK_TEST_IO_FILESYSTEMTEST_HPP
 
+#include "io/filesystem.hpp"
+
+#include <memory>
 #include <string>
 #include <cppunit/extensions/HelperMacros.h>
 
-namespace blank {
 
+namespace blank {
 namespace test {
 
 class FilesystemTest
@@ -26,7 +29,7 @@ public:
        void testDirectory();
 
 private:
-       std::string test_dir;
+       std::unique_ptr<TempDir> test_dir;
 
 };