mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 03:42:53 +01:00
fixed SystemConfigurationTest
This commit is contained in:
parent
f5c49f0d94
commit
302f2f24d3
@ -84,10 +84,11 @@ void SystemConfigurationTest::testKeys()
|
||||
|
||||
pConf->keys("system", keys);
|
||||
#if defined(POCO_VXWORKS)
|
||||
assert (keys.size() == 10);
|
||||
assert (keys.size() == 15);
|
||||
#else
|
||||
assert (keys.size() == 11);
|
||||
assert (keys.size() == 16);
|
||||
#endif
|
||||
|
||||
assert (std::find(keys.begin(), keys.end(), "osName") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "osVersion") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "osArchitecture") != keys.end());
|
||||
@ -95,7 +96,12 @@ void SystemConfigurationTest::testKeys()
|
||||
assert (std::find(keys.begin(), keys.end(), "nodeId") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "currentDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "homeDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "configHomeDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "cacheHomeDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "dataHomeDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "tempHomeDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "tempDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "configDir") != keys.end());
|
||||
assert (std::find(keys.begin(), keys.end(), "dateTime") != keys.end());
|
||||
#if !defined(POCO_VXWORKS)
|
||||
assert (std::find(keys.begin(), keys.end(), "pid") != keys.end());
|
||||
|
Loading…
Reference in New Issue
Block a user