X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Ftesting%2FTestStep.hpp;h=38f40b6588b16b67517fee815d3b2eef5672f71b;hb=f92f99bd9a76474ef38c0437a181bfb0a0e14262;hp=aa2f5754d9eff2d79ae4b984071257260fb9e255;hpb=eb1546671c9e29befae4bd5052de9ee804b1a389;p=anna.git diff --git a/example/diameter/launcher/testing/TestStep.hpp b/example/diameter/launcher/testing/TestStep.hpp index aa2f575..38f40b6 100644 --- a/example/diameter/launcher/testing/TestStep.hpp +++ b/example/diameter/launcher/testing/TestStep.hpp @@ -212,10 +212,11 @@ class TestStepCmd : public TestStep { bool a_threadRunning; bool a_threadDeprecated; int a_resultCode; + std::string a_errorMsg; //std::string a_output; public: - TestStepCmd(TestCase *testCase) : TestStep(testCase), a_threadRunning(false), a_threadDeprecated(false), a_resultCode(-2)/*, a_output("")*/ { a_type = Type::Cmd; } + TestStepCmd(TestCase *testCase) : TestStep(testCase), a_threadRunning(false), a_threadDeprecated(false), a_resultCode(-2)/*, a_output("")*/, a_errorMsg("") { a_type = Type::Cmd; } // setter & getters void setThreadRunning(bool running) throw() { a_threadRunning = running; } @@ -225,6 +226,8 @@ class TestStepCmd : public TestStep { void setResultCode(int rc) throw() { a_resultCode = rc; } int getResultCode() const throw() { return a_resultCode; } + void setErrorMsg(const std::string &em) throw() { a_errorMsg = em; } + const std::string &getErrorMsg() const throw() { return a_errorMsg; } //void setOutput(const std::string &output) throw() { a_output = output; } //const std::string &getOutput() const throw() { return a_output; }