fix linux exit finished

This commit is contained in:
2025-08-13 22:12:14 +03:00
parent d6a0ae6106
commit 0ac7ea3096
2 changed files with 16 additions and 22 deletions

View File

@@ -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());