From: Chris Koeritz Date: Fri, 6 Jul 2012 14:29:20 +0000 (-0400) Subject: making the name more random, although that doesn't explain jenkins problem with this X-Git-Tag: 2.140.90~1292 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=9fba28743ce0b0b7fd2288e792d5e81263fac289;p=feisty_meow.git making the name more random, although that doesn't explain jenkins problem with this on khandroma. --- diff --git a/nucleus/library/tests_filesystem/test_byte_filer.cpp b/nucleus/library/tests_filesystem/test_byte_filer.cpp index 8261d398..ed416d78 100644 --- a/nucleus/library/tests_filesystem/test_byte_filer.cpp +++ b/nucleus/library/tests_filesystem/test_byte_filer.cpp @@ -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; }