running 18 tests test empty_stderr ... FAILED test empty_stdout ... FAILED test empty_stdout_stderr ... FAILED test fail_to_open_output ... FAILED test normalize_to_empty_stderr ... FAILED test normalize_to_empty_stdout ... FAILED test normalize_to_empty_stdout_stderr ... FAILED test output_fail ... FAILED test output_fail_empty_output ... FAILED test output_fail_update ... FAILED test output_ok ... ok test output_status ... FAILED test output_stderr ... FAILED test output_stdout ... FAILED test output_stdout_stderr ... FAILED test output_stdout_stderr_fail ... FAILED test output_stdout_stderr_status ... FAILED test probe ... ok failures: ---- empty_stderr stdout ---- error: command stdout mismatched: diff --git a/empty.stdout b/ index e69de29..0000000 100644 --- a/empty.stdout +++ b/ @@ -0,0 +1,4 @@ +args: ArgsOs { inner: ["./output"] } +stdin: +[stdin end] +stdout error: stderr of the command is empty thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:400:10 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ---- empty_stdout stdout ---- error: stdout of the command is empty error: command stderr mismatched: diff --git a/empty.stderr b/ index e69de29..0000000 100644 --- a/empty.stderr +++ b/ @@ -0,0 +1 @@ +stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:386:10 ---- empty_stdout_stderr stdout ---- error: stdout of the command is empty error: stderr of the command is empty thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:372:10 ---- fail_to_open_output stdout ---- failed to open $STDIO file $NOT_FOUND_ERROR -------- normalized actual stdout -------- args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout failed to open $STDIO file $NOT_FOUND_ERROR -------- normalized actual stderr -------- stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:249:30 ---- normalize_to_empty_stderr stdout ---- error: command stdout mismatched: diff --git a/empty.stdout b/ index e69de29..0000000 100644 --- a/empty.stdout +++ b/ @@ -0,0 +1,4 @@ +args: ArgsOs { inner: ["./output"] } +stdin: +[stdin end] +stdout error: stderr of the command is empty thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:406:30 ---- normalize_to_empty_stdout stdout ---- error: stdout of the command is empty error: command stderr mismatched: diff --git a/empty.stderr b/ index e69de29..0000000 100644 --- a/empty.stderr +++ b/ @@ -0,0 +1 @@ +stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:392:30 ---- normalize_to_empty_stdout_stderr stdout ---- error: stdout of the command is empty error: stderr of the command is empty thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:378:30 ---- output_fail stdout ---- thread 'main' panicked at ' unexpected command exit status $EXIT_CODE -------- command -------- "./output" -------- stdout -------- args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout -------- stderr -------- stderr ', tests/ui.rs:333:10 ---- output_fail_empty_output stdout ---- thread 'main' panicked at ' unexpected command exit status $EXIT_CODE -------- command -------- "./output" -------- stdout -------- -------- stderr -------- ', tests/ui.rs:363:10 ---- output_fail_update stdout ---- thread 'main' panicked at ' unexpected command exit status $EXIT_CODE -------- command -------- "./output" -------- stdout -------- args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout updated stdout -------- stderr -------- stderr updated stderr ', tests/ui.rs:353:10 ---- output_status stdout ---- thread 'main' panicked at ' unexpected command exit status $EXIT_CODE -------- command -------- "./output" -------- stdout -------- args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout -------- stderr -------- stderr ', tests/ui.rs:339:52 ---- output_stderr stdout ---- error: expected the command to have empty stdout, but it printed this (normalized): args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout error: command stderr mismatched: diff --git a/output.stderr b/ index af6415d..0000000 100644 --- a/output.stderr +++ b/ @@ -1 +1,2 @@ stderr +updated stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:287:10 ---- output_stdout stdout ---- error: command stdout mismatched: diff --git a/output.stdout b/ index ec5e0db..0000000 100644 --- a/output.stdout +++ b/ @@ -2,3 +2,4 @@ args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout +updated stdout error: expected the command to have empty stderr, but it printed this (normalized): stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:278:10 ---- output_stdout_stderr stdout ---- error: command stdout mismatched: diff --git a/output.stdout b/ index ec5e0db..0000000 100644 --- a/output.stdout +++ b/ @@ -2,3 +2,4 @@ args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout +updated stdout error: command stderr mismatched: diff --git a/output.stderr b/ index af6415d..0000000 100644 --- a/output.stderr +++ b/ @@ -1 +1,2 @@ stderr +updated stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:270:10 ---- output_stdout_stderr_fail stdout ---- error: command stdout mismatched: diff --git a/output.stdout b/ index ec5e0db..0000000 100644 --- a/output.stdout +++ b/ @@ -2,3 +2,4 @@ args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout +updated stdout error: command stderr mismatched: diff --git a/output.stderr b/ index af6415d..0000000 100644 --- a/output.stderr +++ b/ @@ -1 +1,2 @@ stderr +updated stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:309:10 ---- output_stdout_stderr_status stdout ---- error: command stdout mismatched: diff --git a/output.stdout b/ index ec5e0db..0000000 100644 --- a/output.stdout +++ b/ @@ -2,3 +2,4 @@ args: ArgsOs { inner: ["./output"] } stdin: [stdin end] stdout +updated stdout error: command stderr mismatched: diff --git a/output.stderr b/ index af6415d..0000000 100644 --- a/output.stderr +++ b/ @@ -1 +1,2 @@ stderr +updated stderr thread 'main' panicked at 'actual command output does not match the expectation: "./output"', tests/ui.rs:323:10 failures: empty_stderr empty_stdout empty_stdout_stderr fail_to_open_output normalize_to_empty_stderr normalize_to_empty_stdout normalize_to_empty_stdout_stderr output_fail output_fail_empty_output output_fail_update output_status output_stderr output_stdout output_stdout_stderr output_stdout_stderr_fail output_stdout_stderr_status