summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/test/namedtempfile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/test/namedtempfile.h b/indra/test/namedtempfile.h
index 84b62a0945..8cd6c990dc 100644
--- a/indra/test/namedtempfile.h
+++ b/indra/test/namedtempfile.h
@@ -83,8 +83,9 @@ protected:
{
// Create file in a temporary place.
boost::filesystem::path tempname{ boost::filesystem::temp_directory_path() };
- // unique_path() recommended model
- tempname += stringize(pfx, "%%%%-%%%%-%%%%-%%%%", sfx);
+ // unique_path() recommended template, but with underscores instead of
+ // hyphens: some use cases involve temporary Python scripts
+ tempname += stringize(pfx, "%%%%_%%%%_%%%%_%%%%", sfx);
mPath = boost::filesystem::unique_path(tempname);
boost::filesystem::ofstream out{ mPath };