Results for builtin-trap-bash.test.sh

statusoshosh-cpp
pass 1111
ok 22
N-I 22
FAIL 11
total1616
caseoshosh-cppdescription
0pass pass trap -l
1pass pass trap -p
2pass pass trap -p in child is BUGGY in bash
3pass pass trap DEBUG ignores $?
4pass pass but trap DEBUG respects errexit
5ok ok trap DEBUG with 'return'
detailsdetails
6pass pass trap DEBUG with 'exit'
7pass pass trap DEBUG with non-compound commands
8pass pass trap DEBUG and command sub / subshell
9ok ok trap DEBUG and pipeline (lastpipe difference)
detailsdetails
10pass pass trap DEBUG function call
11pass pass trap DEBUG case
12N-I N-I trap DEBUG for each
detailsdetails
13N-I N-I trap DEBUG for expr
detailsdetails
14pass pass trap DEBUG if while
15FAIL FAIL trap RETURN
detailsdetails
22 passed, 4 OK, 4 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh5 trap DEBUG with 'return'

stdout:
  [8]
stderr:
osh-cpp5 trap DEBUG with 'return'

stdout:
  [8]
stderr:
osh9 trap DEBUG and pipeline (lastpipe difference)

stdout:
  [6]
a
  [6]
b
  [8]
2
  [10]
1
  [14]
1
stderr:
osh-cpp9 trap DEBUG and pipeline (lastpipe difference)

stdout:
  [6]
a
  [6]
b
  [8]
2
  [10]
1
  [14]
1
stderr:
osh12 trap DEBUG for each

stdout:
  [7]
x=1
  [7]
x=2
  [10]
ok
stderr:
osh-cpp12 trap DEBUG for each

stdout:
  [7]
x=1
  [7]
x=2
  [10]
ok
stderr:
osh13 trap DEBUG for expr

stdout:
  [7]
i=3
  [7]
i=4
  [10]
ok
stderr:
osh-cpp13 trap DEBUG for expr

stdout:
  [7]
i=3
  [7]
i=4
  [10]
ok
stderr:
osh15 trap RETURN

[osh stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n'

stdout:
--
f
--
--
g
--
return-helper.sh
stderr:
osh warning: The 'RETURN' hook isn't implemented
osh-cpp15 trap RETURN

[osh-cpp stdout] Expected '--\nf\n--\n--\ng\n--\nreturn-helper.sh\nprofile [x y]\n' Got '--\nf\n--\n--\ng\n--\nreturn-helper.sh\n'

stdout:
--
f
--
--
g
--
return-helper.sh
stderr:
osh warning: The 'RETURN' hook isn't implemented