We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TestTools.testArgumentsDebugger()
1 parent 23c7e36 commit d0d1bfaCopy full SHA for d0d1bfa
src/tests/TestTools.cpp
@@ -32,6 +32,7 @@
32
#include "rapidassist/testing.h"
33
#include "rapidassist/filesystem.h"
34
#include "rapidassist/timing.h"
35
+#include "rapidassist/environment.h"
36
37
namespace shellanything
38
{
@@ -106,9 +107,10 @@ namespace shellanything
106
107
108
// Set a property to allow properly detecting debug executables
109
PropertyManager& pmgr = PropertyManager::GetInstance();
-#ifdef _DEBUG
110
- pmgr.SetProperty("debug.postfix", "-d");
111
-#endif
+ if (ra::environment::IsConfigurationDebug())
+ pmgr.SetProperty("debug.postfix", "-d");
112
+ else
113
+ pmgr.SetProperty("debug.postfix", "");
114
115
//Create a valid context
116
SelectionContext c;
0 commit comments