Skip to content

Commit

Permalink
Fixed unit test TestTools.testArgumentsDebugger() in release config…
Browse files Browse the repository at this point in the history
…uration.
  • Loading branch information
end2endzone committed Sep 29, 2024
1 parent 23c7e36 commit d0d1bfa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/tests/TestTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "rapidassist/testing.h"
#include "rapidassist/filesystem.h"
#include "rapidassist/timing.h"
#include "rapidassist/environment.h"

namespace shellanything
{
Expand Down Expand Up @@ -106,9 +107,10 @@ namespace shellanything

// Set a property to allow properly detecting debug executables
PropertyManager& pmgr = PropertyManager::GetInstance();
#ifdef _DEBUG
pmgr.SetProperty("debug.postfix", "-d");
#endif
if (ra::environment::IsConfigurationDebug())
pmgr.SetProperty("debug.postfix", "-d");
else
pmgr.SetProperty("debug.postfix", "");

//Create a valid context
SelectionContext c;
Expand Down

0 comments on commit d0d1bfa

Please sign in to comment.