Results for introspect.test.sh

casebashoshosh_ALTdescription
0pass pass pass ${FUNCNAME[@]} array
1pass FAIL FAIL ${BASH_SOURCE[@]} is a stack of source files for function calls
detailsdetails
2pass FAIL FAIL ${BASH_LINENO[@]} is a stack of line numbers for function calls
detailsdetails
3pass FAIL FAIL $LINENO is the current line, not line of function call
detailsdetails

6 passed, 0 ok, 0 known unimplemented, 0 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

osh1 ${BASH_SOURCE[@]} is a stack of source files for function calls

[osh stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "['begin F funcs', 'f']\n['begin F files']\n['begin F lines']\n['G funcs', 'g', 'f']\n['G files']\n['G lines']\n['end F funcs', 'f']\n['end F']\n['end F lines']\n"

stdout:
['begin F funcs', 'f']
['begin F files']
['begin F lines']
['G funcs', 'g', 'f']
['G files']
['G lines']
['end F funcs', 'f']
['end F']
['end F lines']
stderr:
osh_ALT1 ${BASH_SOURCE[@]} is a stack of source files for function calls

[osh_ALT stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "['begin F funcs', 'f']\n['begin F files']\n['begin F lines']\n['G funcs', 'g', 'f']\n['G files']\n['G lines']\n['end F funcs', 'f']\n['end F']\n['end F lines']\n"

stdout:
['begin F funcs', 'f']
['begin F files']
['begin F lines']
['G funcs', 'g', 'f']
['G files']
['G lines']
['end F funcs', 'f']
['end F']
['end F lines']
stderr:
osh2 ${BASH_LINENO[@]} is a stack of line numbers for function calls

[osh stdout] Expected "['begin F', '9']\n['G', '6', '9']\n['end F', '9']\n", got "['begin F']\n['G']\n['end F']\n"

stdout:
['begin F']
['G']
['end F']
stderr:
osh_ALT2 ${BASH_LINENO[@]} is a stack of line numbers for function calls

[osh_ALT stdout] Expected "['begin F', '9']\n['G', '6', '9']\n['end F', '9']\n", got "['begin F']\n['G']\n['end F']\n"

stdout:
['begin F']
['G']
['end F']
stderr:
osh3 $LINENO is the current line, not line of function call

[osh stdout] Expected "['5']\n['2']\n['7']\n", got "['9']\n['6']\n['2']\n"

stdout:
['9']
['6']
['2']
stderr:
osh_ALT3 $LINENO is the current line, not line of function call

[osh_ALT stdout] Expected "['5']\n['2']\n['7']\n", got "['9']\n['6']\n['2']\n"

stdout:
['9']
['6']
['2']
stderr: