spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 3 | 1 | |
FAIL | 0 | 2 | |
total | 3 | 3 | |
case | osh | osh-cpp | description |
0 | pass | FAIL | crash dump |
details | |||
1 | pass | FAIL | crash dump with source |
details | |||
2 | pass | pass | --tool cat-em |
4 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
osh-cpp | 0 crash dump [osh-cpp stdout] Expected 'status=1\nstatus=0\n', got 'status=2\nstatus=1\n' [osh-cpp stderr] Found 'Traceback (most recent' stdout: status=2 status=1stderr: echo $(( 1 / 0 )) ^ [ -c flag ]:4: fatal: Divide by zero getline() error: Bad file descriptor oils I/O error (main): Bad file descriptor Traceback (most recent call last): File "<string>", line 7, in <module> File "/wedge/oils-for-unix.org/pkg/python3/3.10.4/lib/python3.10/json/__init__.py", line 293, in load return loads(fp.read(), File "/wedge/oils-for-unix.org/pkg/python3/3.10.4/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/wedge/oils-for-unix.org/pkg/python3/3.10.4/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/wedge/oils-for-unix.org/pkg/python3/3.10.4/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) |
osh-cpp | 1 crash dump with source [osh-cpp stdout] Expected 'crash status=1\nfound crash dump\n', got 'crash status=2\n' stdout: crash status=2stderr: echo $(( 42 / 0 )) ^ /home/andy/git/oilshell/oil/test/../spec/testdata/crash.sh:3: fatal: Divide by zero getline() error: Bad file descriptor oils I/O error (main): Bad file descriptor + set -o errexit + ok=0 + test -s /home/andy/git/oilshell/oil/_tmp/spec-tmp/ysh-dev.test.sh.11757/01-osh-cpp/12281-osh-crash-dump.json + test 0 -ge 1 |