Skip to content

Commit d0d1bfa

Browse files
committed
Fixed unit test TestTools.testArgumentsDebugger() in release configuration.
1 parent 23c7e36 commit d0d1bfa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/tests/TestTools.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "rapidassist/testing.h"
3333
#include "rapidassist/filesystem.h"
3434
#include "rapidassist/timing.h"
35+
#include "rapidassist/environment.h"
3536

3637
namespace shellanything
3738
{
@@ -106,9 +107,10 @@ namespace shellanything
106107

107108
// Set a property to allow properly detecting debug executables
108109
PropertyManager& pmgr = PropertyManager::GetInstance();
109-
#ifdef _DEBUG
110-
pmgr.SetProperty("debug.postfix", "-d");
111-
#endif
110+
if (ra::environment::IsConfigurationDebug())
111+
pmgr.SetProperty("debug.postfix", "-d");
112+
else
113+
pmgr.SetProperty("debug.postfix", "");
112114

113115
//Create a valid context
114116
SelectionContext c;

0 commit comments

Comments
 (0)