From 12291d4f317e40fa41118b883287b0d68d9353d9 Mon Sep 17 00:00:00 2001 From: Alek Mosingiewicz Date: Tue, 3 Apr 2018 18:00:25 +0200 Subject: [PATCH] Warn against environmental variables not set in test - make it better. --- unittests/multithreaded_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittests/multithreaded_test.cpp b/unittests/multithreaded_test.cpp index 670ccc6d..59b19883 100644 --- a/unittests/multithreaded_test.cpp +++ b/unittests/multithreaded_test.cpp @@ -47,15 +47,16 @@ int main() const char *usepath = getenv("CHAI_USE_PATH"); const char *modulepath = getenv("CHAI_MODULE_PATH"); + const char *this_might_affect_test_result = "This might have adverse effect on the result of the test."; if(usepath == nullptr) { - std::cout << "Warning: usepath not set!\n"; + std::cout << "Warning: environmental variable CHAI_USE_PATH not set! " << this_might_affect_test_result << "\n"; } if(modulepath == nullptr) { - std::cout << "Warning: modulepath not set!\n"; + std::cout << "Warning: environmental variable CHAI_MODULE_PATH not set! " << this_might_affect_test_result; } #ifdef CHAISCRIPT_MSVC