mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-12 21:29:58 +08:00
Warn against environmental variables not set in test - make it better.
This commit is contained in:
parent
7a54464a8b
commit
12291d4f31
@ -47,15 +47,16 @@ int main()
|
|||||||
|
|
||||||
const char *usepath = getenv("CHAI_USE_PATH");
|
const char *usepath = getenv("CHAI_USE_PATH");
|
||||||
const char *modulepath = getenv("CHAI_MODULE_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)
|
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)
|
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
|
#ifdef CHAISCRIPT_MSVC
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user