MCPcopy Create free account
hub / github.com/Icinga/icinga2 / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

test/base-shellescape.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10BOOST_AUTO_TEST_SUITE(base_shellescape)
11
12BOOST_AUTO_TEST_CASE(escape_basic)
13{
14#ifdef _WIN32
15 BOOST_CHECK(Utility::EscapeShellCmd("%PATH%") == "^%PATH^%");
16#else /* _WIN32 */
17 BOOST_CHECK(Utility::EscapeShellCmd("$PATH") == "\\$PATH");
18 BOOST_CHECK(Utility::EscapeShellCmd("\\$PATH") == "\\\\\\$PATH");
19#endif /* _WIN32 */
20}
21
22BOOST_AUTO_TEST_CASE(escape_quoted)
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected