aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-26 10:18:14 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-26 10:38:38 +0200
commit68f5ff0ec4ba02712e806df963ba65838522e2bb (patch)
tree665623ccd549e3b1a62d6b95ee19695d4edc20cd /test
parentworkflows/ci: refactoring (diff)
downloadcimple-68f5ff0ec4ba02712e806df963ba65838522e2bb.tar.gz
cimple-68f5ff0ec4ba02712e806df963ba65838522e2bb.zip
process: portable exit code processing
Diffstat (limited to 'test')
-rw-r--r--test/py/lib/test_repo.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/py/lib/test_repo.py b/test/py/lib/test_repo.py
index eb2786d..af0da68 100644
--- a/test/py/lib/test_repo.py
+++ b/test/py/lib/test_repo.py
@@ -217,9 +217,7 @@ class TestRepoSegfault(TestRepo):
shutil.copy(self.prog_path, self.ci_script_path)
def run_exit_code_matches(self, ec):
- # If WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV, then the $?
- # would be 139.
- return ec == 139
+ return ec == -11
def run_output_matches(self, output):
return "Started the test program.\n" == output.decode()