Results for introspect.test.sh

statusoshosh-cpp
pass 1212
ok 11
total1313
caseoshosh-cppdescription
0pass pass ${FUNCNAME[@]} array
1pass pass FUNCNAME with source (scalar or array)
2pass pass BASH_SOURCE and BASH_LINENO scalar or array (e.g. for virtualenv)
3pass pass ${FUNCNAME} with prefix/suffix operators
4pass pass operators on FUNCNAME
5pass pass ${FUNCNAME} and "set -u" (OSH regression)
6pass pass $((BASH_LINENO)) (scalar form in arith)
7pass pass ${BASH_SOURCE[@]} with source and function name
8pass pass ${BASH_SOURCE[@]} with line numbers
9pass pass ${BASH_LINENO[@]} is a stack of line numbers for function calls
10pass pass Locations with temp frame
11ok ok Locations when sourcing
detailsdetails
12pass pass Sourcing inside function grows the debug stack
24 passed, 2 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh11 Locations when sourcing

stdout:
F
G
STACK:spec/testdata/bash-source-pushtemp.sh:g:3
STACK:spec/testdata/bash-source-pushtemp.sh:f:19
STACK:spec/testdata/bash-source-pushtemp.sh:source:2
stderr:
osh-cpp11 Locations when sourcing

stdout:
F
G
STACK:spec/testdata/bash-source-pushtemp.sh:g:3
STACK:spec/testdata/bash-source-pushtemp.sh:f:19
STACK:spec/testdata/bash-source-pushtemp.sh:source:2
stderr: