Results for builtin-special.test.sh

statusoshosh_.pyosh_.cc
pass 332
FAIL 445
total777
caseoshosh_.pyosh_.ccdescription
0FAIL FAIL FAIL : is special and prefix assignments persist after special builtins
detailsdetailsdetails
1pass pass FAIL readonly is special and prefix assignments persist
details
2pass pass pass true is not special
3FAIL FAIL FAIL Shift is special and the whole script exits if it returns non-zero
detailsdetailsdetails
4FAIL FAIL FAIL set is special and fails, even if using || true
detailsdetailsdetails
5FAIL FAIL FAIL Special builtins can't be redefined as functions
detailsdetailsdetails
6pass pass pass Non-special builtins CAN be redefined as functions
8 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh0 : is special and prefix assignments persist after special builtins

[osh stdout] Expected 'foo=bar\n', got 'foo=\n'

stdout:
foo=
stderr:
osh_.py0 : is special and prefix assignments persist after special builtins

[osh_.py stdout] Expected 'foo=bar\n', got 'foo=\n'

stdout:
foo=
stderr:
osh_.cc0 : is special and prefix assignments persist after special builtins

[osh_.cc stdout] Expected 'foo=bar\n', got 'foo=\n'

stdout:
foo=
stderr:
dumb_alloc:
	gNumNew = 2163
	gNumDelete = 183
	gMemPos = 73344

	gNumMalloc = 149
	gNumFree = 0
	gMemPos2 = 11040
osh_.cc1 readonly is special and prefix assignments persist

[osh_.cc stdout] Expected 'foo=bar\nspam=eggs\nNone\nNone\n', got 'None\nNone\nfoo=bar\nspam=eggs\n'

stdout:
None
None
foo=bar
spam=eggs
stderr:
dumb_alloc:
	gNumNew = 2603
	gNumDelete = 258
	gMemPos = 86256

	gNumMalloc = 323
	gNumFree = 0
	gMemPos2 = 13856
osh3 Shift is special and the whole script exits if it returns non-zero

[osh stdout] Expected u'', got 'status=1\n'
[osh status] Expected 1, got 0

stdout:
status=1
stderr:
osh_.py3 Shift is special and the whole script exits if it returns non-zero

[osh_.py stdout] Expected u'', got 'status=1\n'
[osh_.py status] Expected 1, got 0

stdout:
status=1
stderr:
osh_.cc3 Shift is special and the whole script exits if it returns non-zero

[osh_.cc stdout] Expected u'', got 'status=1\n'
[osh_.cc status] Expected 1, got 0

stdout:
status=1
stderr:
dumb_alloc:
	gNumNew = 2248
	gNumDelete = 197
	gMemPos = 75088

	gNumMalloc = 196
	gNumFree = 0
	gMemPos2 = 11712
osh4 set is special and fails, even if using || true

[osh stdout] Expected 'ok\n', got 'ok\nshould not get here\n'
[osh status] Expected 1, got 0

stdout:
ok
should not get here
stderr:
  shopt -s invalid_ || true
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'invalid_'
  set -o invalid_ || true
  ^~~
[ stdin ]:3: 'set' got invalid option 'invalid_'
osh_.py4 set is special and fails, even if using || true

[osh_.py stdout] Expected 'ok\n', got 'ok\nshould not get here\n'
[osh_.py status] Expected 1, got 0

stdout:
ok
should not get here
stderr:
  shopt -s invalid_ || true
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'invalid_'
  set -o invalid_ || true
  ^~~
[ stdin ]:3: 'set' got invalid option 'invalid_'
osh_.cc4 set is special and fails, even if using || true

[osh_.cc stdout] Expected 'ok\n', got 'ok\nshould not get here\n'
[osh_.cc status] Expected 1, got 0

stdout:
ok
should not get here
stderr:
  shopt -s invalid_ || true
  ^~~~~
[ stdin ]:1: 'shopt' got invalid option 'invalid_'

dumb_alloc:
	gNumNew = 2510
	gNumDelete = 229
	gMemPos = 83056

	gNumMalloc = 301
	gNumFree = 0
	gMemPos2 = 13408
osh5 Special builtins can't be redefined as functions

[osh status] Expected 2, got 0

stdout:
status=0
stderr:
osh_.py5 Special builtins can't be redefined as functions

[osh_.py status] Expected 2, got 0

stdout:
status=0
stderr:
osh_.cc5 Special builtins can't be redefined as functions

[osh_.cc status] Expected 2, got 0

stdout:
status=0
stderr:
dumb_alloc:
	gNumNew = 2131
	gNumDelete = 188
	gMemPos = 71536

	gNumMalloc = 133
	gNumFree = 1
	gMemPos2 = 10736