diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-02-27 08:23:20 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-02-27 15:25:57 -0500 |
| commit | de7d8f9e48b7801659c15f03489d1b5a2fbe7d50 (patch) | |
| tree | e3aeaa0e96262c83a53c83116c800d23bc0d874d /test cases | |
| parent | 7fd17ab12854ff5339f3309156cd9b705f517fd0 (diff) | |
| download | meson-de7d8f9e48b7801659c15f03489d1b5a2fbe7d50.tar.gz | |
test: fix hang when running tests that need parsing with `--interactive`
When running tests with `--interactive` we don't redirect stdin, stdout
or stderr and instead pass them on to the user's console. This redirect
causes us to hang in case the test in question needs parsing, like it is
the case for TAP output, because we cannot read the process's stdout.
Fix this hang by not parsing output when running in interactive mode.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/124 interactive tap/meson.build | 4 | ||||
| -rwxr-xr-x | test cases/unit/124 interactive tap/script.py | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test cases/unit/124 interactive tap/meson.build b/test cases/unit/124 interactive tap/meson.build new file mode 100644 index 000000000..30518db6f --- /dev/null +++ b/test cases/unit/124 interactive tap/meson.build @@ -0,0 +1,4 @@ +project('interactive TAP output') + +test_script = find_program('script.py') +test('main', test_script, protocol: 'tap') diff --git a/test cases/unit/124 interactive tap/script.py b/test cases/unit/124 interactive tap/script.py new file mode 100755 index 000000000..873a4ae81 --- /dev/null +++ b/test cases/unit/124 interactive tap/script.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +print('''1..2 +ok 1 +not ok 2''') |
