aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 910136f..8d9a585 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -366,6 +366,9 @@ class SingleTestRunner:
except subprocess.TimeoutExpired:
stdo = b'Test process could not be killed.'
stde = b''
+ except ValueError:
+ stdo = b'Could not read output. Maybe the process has redirected its stdout/stderr?'
+ stde = b''
endtime = time.time()
duration = endtime - starttime
stdo = decode(stdo)