Skip to content

Commit

Permalink
updated test app
Browse files Browse the repository at this point in the history
  • Loading branch information
ASDAlexander77 committed Oct 13, 2024
1 parent d46af70 commit e3922ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsc/test/tester/test-runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -268,7 +268,7 @@ std::string getTempOutputFileNameNoExt(std::string file)
std::chrono::duration_cast<std::chrono::milliseconds>(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;

Expand Down

0 comments on commit e3922ea

Please sign in to comment.