Results for ysh-dev.test.sh

statusoshosh-cpp
pass 31
FAIL 02
total33
caseoshosh-cppdescription
0pass FAIL crash dump
details
1pass FAIL crash dump with source
details
2pass pass --tool cat-em
4 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 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=1
stderr:
    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-cpp1 crash dump with source

[osh-cpp stdout] Expected 'crash status=1\nfound crash dump\n', got 'crash status=2\n'

stdout:
crash status=2
stderr:
  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