Results for ysh-json.test.sh

statusoshosh-cpp
pass 100
FAIL 010
total1010
caseoshosh-cppdescription
0pass FAIL json write STRING
details
1pass FAIL json write ARRAY
details
2pass FAIL json write compact format
details
3pass FAIL json write in command sub
details
4pass FAIL json read passed invalid args
details
5pass FAIL json read with redirect
details
6pass FAIL json read at end of pipeline (relies on lastpipe)
details
7pass FAIL invalid JSON
details
8pass FAIL json write expression
details
9pass FAIL json write evaluation error
details
10 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 json write STRING

[osh-cpp stdout] Expected '"foo"\n"foo"\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp1 json write ARRAY

[osh-cpp stdout] Expected '[\n "foo.cc",\n "foo.h"\n]\n[\n"foo.cc",\n"foo.h"\n]\n' Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp2 json write compact format

[osh-cpp stdout] Expected '{"name":"bob","age":30}\n{"name":"bob","age":30}\n' Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp3 json write in command sub

[osh-cpp stdout] Expected '{\n "name": "bob",\n "age": 30\n}\n{\n "name": "bob",\n "age": 30\n}\n' Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp4 json read passed invalid args

[osh-cpp stdout] Expected 'status=2\nstatus=2\nstatus=2\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp5 json read with redirect

[osh-cpp stdout] Expected "x = (Cell exported:F readonly:F nameref:F val:(value.Obj obj:{'age': 42}))\n" Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp6 json read at end of pipeline (relies on lastpipe)

[osh-cpp stdout] Expected "y = (Cell exported:F readonly:F nameref:F val:(value.Obj obj:{'age': 43}))\n" Got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp7 invalid JSON

[osh-cpp stdout] Expected 'pipeline status = 1\n', got ''
[osh-cpp status] Expected 1, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp8 json write expression

[osh-cpp stdout] Expected '[1,2,3]\nstatus=0\nstatus=2\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core
osh-cpp9 json write evaluation error

[osh-cpp status] Expected 1, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'KeyError*'
timeout: the monitored command dumped core