summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-12-12 22:49:41 +0000
committerChris Wilson <chris+github@qwirx.com>2015-12-13 23:48:22 +0000
commit768f2bd2c35d56f0df65c4c9acfe5649e776409e (patch)
treefc19952b3baf20acbcb36470912b9ec85f3555a7 /lib/common
parenta09d552396ea9d9d5decd3185601a4be7090415b (diff)
Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake.
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/Test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h
index 15a3db6f..36cd6a59 100644
--- a/lib/common/Test.h
+++ b/lib/common/Test.h
@@ -243,4 +243,12 @@ void safe_sleep(int seconds);
std::auto_ptr<Configuration> load_config_file(const std::string& config_file,
const ConfigurationVerify& verify);
+#ifdef _MSC_VER
+ // Our CMakeFiles compile tests to different executable filenames,
+ // e.g. test_common.exe instead of _test.exe.
+ #define TEST_EXECUTABLE BOX_MODULE ".exe"
+#else
+ #define TEST_EXECUTABLE "./_test"
+#endif
+
#endif // TEST__H