Results for var-op-test.test.sh

statusoshosh_.pyosh_.cc
pass 212119
ok 330
FAIL 005
total242424
caseoshosh_.pyosh_.ccdescription
0pass pass pass Lazy Evaluation of Alternative
1pass pass pass Default value when empty
2pass pass pass Default value when unset
3ok ok FAIL Unquoted with array as default value
detailsdetailsdetails
4ok ok FAIL Quoted with array as default value
detailsdetailsdetails
5ok ok FAIL Assign default with array
detailsdetailsdetails
6pass pass pass Assign default value when empty
7pass pass pass Assign default value when unset
8pass pass pass ${v:+foo} Alternative value when empty
9pass pass pass ${v+foo} Alternative value when unset
10pass pass FAIL "${x+foo}" quoted (regression)
details
11pass pass pass ${v+foo} and ${v:+foo} when set -u
12pass pass pass ${v-foo} and ${v:-foo} when set -u
13pass pass FAIL array and - and +
details
14pass pass pass $@ and - and +
15pass pass pass assoc array and - and +
16pass pass pass Error when empty
17pass pass pass Error when unset
18pass pass pass Error when unset
19pass pass pass ${var=x} dynamic scope
20pass pass pass array ${arr[0]=x}
21pass pass pass assoc array ${arr["k"]=x}
22pass pass pass "\z" as arg
23pass pass pass "\e" as arg
61 passed, 6 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh3 Unquoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
osh_.py3 Unquoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
osh_.cc3 Unquoted with array as default value

[osh_.cc status] Expected 0, got 255

stdout:
['Xx1 2', '3 4xX']
['Xx1', '2', '3', '4xX']
stderr:
dumb_alloc:
	gNumNew = 2248
	gNumDelete = 242
	gMemPos = 76112

	gNumMalloc = 230
	gNumFree = 0
	gMemPos2 = 12256
osh4 Quoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1 2 3 4xX']
stderr:
osh_.py4 Quoted with array as default value

stdout:
['Xx1 2', '3 4xX']
['Xx1 2 3 4xX']
stderr:
osh_.cc4 Quoted with array as default value

[osh_.cc status] Expected 0, got 255

stdout:
['Xx1 2', '3 4xX']
['Xx1 2 3 4xX']
stderr:
dumb_alloc:
	gNumNew = 2124
	gNumDelete = 215
	gMemPos = 72384

	gNumMalloc = 150
	gNumFree = 0
	gMemPos2 = 10976
osh5 Assign default with array

stdout:
['Xx1 2', '3 4xX']
['x1 2 3 4x']
stderr:
osh_.py5 Assign default with array

stdout:
['Xx1 2', '3 4xX']
['x1 2 3 4x']
stderr:
osh_.cc5 Assign default with array

[osh_.cc stdout] Expected "['Xx1 2', '3 4xX']\n['x1 2 3 4x']\n", got "['x1 2 3 4x']\n['Xx1 2', '3 4xX']\n"
[osh_.cc status] Expected 0, got 255

stdout:
['x1 2 3 4x']
['Xx1 2', '3 4xX']
stderr:
dumb_alloc:
	gNumNew = 2161
	gNumDelete = 214
	gMemPos = 73600

	gNumMalloc = 186
	gNumFree = 0
	gMemPos2 = 11552
osh_.cc10 "${x+foo}" quoted (regression)

[osh_.cc status] Expected 0, got 255

stdout:
['', '=', 'set']
stderr:
dumb_alloc:
	gNumNew = 1824
	gNumDelete = 127
	gMemPos = 63440

	gNumMalloc = 85
	gNumFree = 0
	gMemPos2 = 9936
osh_.cc13 array and - and +

[osh_.cc stdout] Expected "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['minus']\n[]\n['']\n['plus']\n['']\n['plus']\n['', 'x']\n['plus']\n['3', '4']\n['plus']\n", got "empty=minus\na1=\na1[0]=\na2= x\na3=3 4\n---\nempty=\na1=plus\na1[0]=plus\na2=plus\na3=plus\n---\nempty=\na1=plus\na2=plus\na3=plus\n---\n['plus']\n[]\n['minus']\n['']\n['plus']\n['', 'x']\n['3', '4']\n['']\n['plus']\n['plus']\n"
[osh_.cc status] Expected 0, got 255

stdout:
empty=minus
a1=
a1[0]=
a2= x
a3=3 4
---
empty=
a1=plus
a1[0]=plus
a2=plus
a3=plus
---
empty=
a1=plus
a2=plus
a3=plus
---
['plus']
[]
['minus']
['']
['plus']
['', 'x']
['3', '4']
['']
['plus']
['plus']
stderr:
dumb_alloc:
	gNumNew = 5743
	gNumDelete = 757
	gMemPos = 174496

	gNumMalloc = 1398
	gNumFree = 0
	gMemPos2 = 31040