*/
#include <dpl/test/test_runner.h>
#include <dpl/utils/bash_utils.h>
-#include <dpl/log/log.h>
+#include <dpl/log/wrt_log.h>
using namespace BashUtils;
RUNNER_ASSERT_MSG(escape_arg(std::string(
"valid")) == "\"valid\"",
"Valid argument failed");
- LogDebug("\"val\\!d\"" << " " << escape_arg(std::string("val!d")));
+ WrtLogD("\"val\\!d\" %s", escape_arg(std::string("val!d")).c_str());
RUNNER_ASSERT_MSG(escape_arg(std::string(
"val!d")) == "\"val\\!d\"",
"Single escaped character in argument failed");
- LogDebug("\"v\\$l\\$\\$\"" << " " << escape_arg(std::string("v$l$$")));
+ WrtLogD("\"v\\$l\\$\\$\" %s", escape_arg(std::string("v$l$$")).c_str());
RUNNER_ASSERT_MSG(escape_arg(std::string(
"v$l$$")) == "\"v\\$l\\$\\$\"",
"Multiple occurences of single special character in argument failed");
- LogDebug("\"v\\`\\$\\\"\\!d\\`\"" << " " <<
- escape_arg(std::string("v`$\"!d`")));
+ WrtLogD("\"v\\`\\$\\\"\\!d\\`\" %s",
+ escape_arg(std::string("v`$\"!d`")).c_str());
RUNNER_ASSERT_MSG(escape_arg(std::string(
"v`$\"!d`")) == "\"v\\`\\$\\\"\\!d\\`\"",
"Multiple occurences of multiple special character in argument failed");