making the name more random, although that doesn't explain jenkins problem with this
authorChris Koeritz <fred@gruntose.com>
Fri, 6 Jul 2012 14:29:20 +0000 (10:29 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 6 Jul 2012 14:29:20 +0000 (10:29 -0400)
on khandroma.

nucleus/library/tests_filesystem/test_byte_filer.cpp

index 8261d39831055a08180dc8f9f1c6e17d7b0a5fa0..ed416d7806b246b962f1f46265477b2d3ba64fd7 100644 (file)
@@ -56,12 +56,15 @@ public:
 
 const astring &TEST_FILE()
 {
-  const char *TEST_FILE_BASE = "/zz_garbage.txt";
+  const char *TEST_FILE_BASE = "/zz_garbage";
+  const char *TEST_FILE_SUFFIX = ".txt";
   static astring __hidden_filename;
   if (!__hidden_filename) {
     __hidden_filename = environment::get("TMP");
     if (!__hidden_filename) __hidden_filename = "/tmp";
-    __hidden_filename += astring(TEST_FILE_BASE);
+    __hidden_filename += TEST_FILE_BASE;
+    __hidden_filename += a_sprintf("%d", chaos().inclusive(0, 65535));
+    __hidden_filename += TEST_FILE_SUFFIX;
   }
   return __hidden_filename;
 }