From e3922ea7205b801825c1edc338fd57d40c378020 Mon Sep 17 00:00:00 2001 From: ASDAlexander77 Date: Sun, 13 Oct 2024 01:47:18 +0100 Subject: [PATCH] updated test app --- tsc/test/tester/test-runner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsc/test/tester/test-runner.cpp b/tsc/test/tester/test-runner.cpp index dbe852ddc..97e517583 100644 --- a/tsc/test/tester/test-runner.cpp +++ b/tsc/test/tester/test-runner.cpp @@ -230,9 +230,9 @@ void deleteFiles(std::string tempOutputFileNameNoExt) { std::stringstream mask; #if WIN32 - mask << "del " << tempOutputFileNameNoExt << ".*"; + mask << "del " << tempOutputFileNameNoExt << ".bat " << tempOutputFileNameNoExt << ".txt " << tempOutputFileNameNoExt << ".err " << tempOutputFileNameNoExt << ".exe " << tempOutputFileNameNoExt << ".obj"; #else - mask << "rm " << tempOutputFileNameNoExt << ".*"; + mask << "rm " << tempOutputFileNameNoExt << ".sh " << tempOutputFileNameNoExt << ".txt " << tempOutputFileNameNoExt << ".err " << tempOutputFileNameNoExt << " " << tempOutputFileNameNoExt << ".o"; #endif auto delCmd = mask.str(); @@ -268,7 +268,7 @@ std::string getTempOutputFileNameNoExt(std::string file) std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()); std::string fileNameNoExt = fs::path(file).stem().string(); - auto fileNameNoExtWithMs = fileNameNoExt + std::to_string(ms.count()); + auto fileNameNoExtWithMs = fileNameNoExt + "-" + std::to_string(ms.count()) + "-" + std::to_string(rand()); std::cout << "Test file: " << fileNameNoExtWithMs << " path: " << file << std::endl;