logic: std::signal instead of sigaction
* commandline test cout redirect [skip ci]
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user