fix linux exit finished
This commit is contained in:
@@ -74,9 +74,6 @@ TEST_F(ProcessTest, Input) {
|
||||
EXPECT_TRUE(!launcher.isExecFinished());
|
||||
|
||||
PIString test_input = "Test input string\n";
|
||||
#ifdef WINDOWS
|
||||
test_input += (char)0x1A;
|
||||
#endif
|
||||
EXPECT_TRUE(launcher.writeInput(test_input.toAscii()));
|
||||
launcher.closeInput();
|
||||
|
||||
@@ -91,6 +88,9 @@ TEST_F(ProcessTest, Input) {
|
||||
TEST_F(ProcessTest, NonexistentCommand) {
|
||||
const PIString command = {"nonexistent_command_12345"};
|
||||
|
||||
launcher.enableWriteStdIn(false);
|
||||
launcher.enableReadStdOut(false);
|
||||
launcher.enableReadStdErr(false);
|
||||
launcher.exec(command);
|
||||
ASSERT_TRUE(launcher.isRunning());
|
||||
ASSERT_TRUE(launcher.waitForFinish());
|
||||
|
||||
Reference in New Issue
Block a user