You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect "cat: non_existent.txt: No such file or directory"
19
-
expect "Exit code: 1"
12
+
set expected_output [normalize_output {
13
+
Hello
14
+
{ stderr_utf8_lossy: "", stdout_utf8: "Hi
15
+
" }
16
+
BAZ=DUCK
17
+
FOO=BAR
18
+
XYZ=ABC
19
+
cat: non_existent.txt: No such file or directory
20
+
Exit code: 1
21
+
{ stderr_bytes: [], stdout_bytes: [72, 105, 10] }
22
+
}]
20
23
21
-
expect eof {
22
-
check_exit_and_segfault
24
+
expect -exact $expected_output {
25
+
expect eof {
26
+
check_exit_and_segfault
27
+
}
23
28
}
24
29
25
30
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
0 commit comments