logic: std::signal instead of sigaction

* commandline test cout redirect
[skip ci]
This commit is contained in:
Andreas Stallinger
2017-08-10 18:00:02 +02:00
parent 12120e443b
commit 05ac4f3b6e
2 changed files with 6 additions and 15 deletions
+5
View File
@@ -73,10 +73,15 @@ public:
"/opt/testpath/mvn"
});
std::stringstream redStream;
auto oldBuf = std::cout.rdbuf( redStream.rdbuf() );
commandline::CommandLineParser parser("2");
parser.preparse(args);
parser.parse();
std::cout.rdbuf( oldBuf );
FilePath path = ApplicationSettings::getInstance()->getMavenPath();
TS_ASSERT_EQUALS( path.str(), "/opt/testpath/mvn")