From 232ef242e9a36a6d903fb8fc62a0791f94998b6d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 12 Dec 2015 22:49:41 +0000 Subject: Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake. --- lib/common/Test.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 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 -- cgit v1.2.3