new attempt creates temp directory, since we're being given a bogus one by jenkins.
authorChris Koeritz <fred@gruntose.com>
Tue, 10 Jul 2012 15:01:30 +0000 (11:01 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 10 Jul 2012 15:01:30 +0000 (11:01 -0400)
nucleus/library/tests_filesystem/test_byte_filer.cpp

index 0bf0ff1a9eb2a0e0de4e8b0006c85a512f79322e..de5c895caf3fac70b19d1471e76c87937386c0d3 100644 (file)
@@ -65,6 +65,8 @@ const astring &TEST_FILE()
   if (!__hidden_filename) {
     __hidden_filename = environment::get("TMP");
     if (!__hidden_filename) __hidden_filename = "/tmp";
+    // try to create it just in case it wasn't there already.
+    directory::make_directory(__hidden_filename);
     __hidden_filename += TEST_FILE_BASE;
     __hidden_filename += a_sprintf("%d", chaos().inclusive(0, 65535));
     __hidden_filename += TEST_FILE_SUFFIX;