Results for type-compat.test.sh

statusoshosh_.pyosh_.cc
FAIL 555
total555
caseoshosh_.pyosh_.ccdescription
0FAIL FAIL FAIL declare -i with +=
detailsdetailsdetails
1FAIL FAIL FAIL declare -i with arithmetic inside strings (Nix, issue 864)
detailsdetailsdetails
2FAIL FAIL FAIL append in arith context
detailsdetailsdetails
3FAIL FAIL FAIL declare array vs. string: mixing -a +a and () ''
detailsdetailsdetails
4FAIL FAIL FAIL declare array vs. associative array
detailsdetailsdetails
0 passed, 0 OK, 0 not implemented, 0 BUG, 15 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

osh0 declare -i with +=

[osh stdout] Expected '[1 2 ]\n3\n2\n', got '[1 2 ]\n1 2\nx 2\n'

stdout:
[1  2 ]
1 2
x 2
stderr:
  declare -i i
          ^~
[ stdin ]:4: 'declare' doesn't accept flag -i
  declare -i j
          ^~
[ stdin ]:7: 'declare' doesn't accept flag -i
osh_.py0 declare -i with +=

[osh_.py stdout] Expected '[1 2 ]\n3\n2\n', got '[1 2 ]\n1 2\nx 2\n'

stdout:
[1  2 ]
1 2
x 2
stderr:
  declare -i i
          ^~
[ stdin ]:4: 'declare' doesn't accept flag -i
  declare -i j
          ^~
[ stdin ]:7: 'declare' doesn't accept flag -i
osh_.cc0 declare -i with +=

[osh_.cc stdout] Expected '[1 2 ]\n3\n2\n', got '[1 2 ]\n1 2\nx 2\n'

stdout:
[1  2 ]
1 2
x 2
stderr:
  declare -i i
          ^~
[ stdin ]:4: 'declare' dynamic_fmt_dummy
  declare -i j
          ^~
[ stdin ]:7: 'declare' dynamic_fmt_dummy

dumb_alloc:
	gNumNew = 2582
	gNumDelete = 278
	gMemPos = 85728

	gNumMalloc = 221
	gNumFree = 0
	gMemPos2 = 12112
osh1 declare -i with arithmetic inside strings (Nix, issue 864)

[osh stdout] Expected 's=3\nitem=3\n', got 's=1 + 2\nitem=array[1+1]\n'

stdout:
s=1 + 2
item=array[1+1]
stderr:
  declare -i s
          ^~
[ stdin ]:1: 'declare' doesn't accept flag -i
  declare -i item
          ^~
[ stdin ]:5: 'declare' doesn't accept flag -i
osh_.py1 declare -i with arithmetic inside strings (Nix, issue 864)

[osh_.py stdout] Expected 's=3\nitem=3\n', got 's=1 + 2\nitem=array[1+1]\n'

stdout:
s=1 + 2
item=array[1+1]
stderr:
  declare -i s
          ^~
[ stdin ]:1: 'declare' doesn't accept flag -i
  declare -i item
          ^~
[ stdin ]:5: 'declare' doesn't accept flag -i
osh_.cc1 declare -i with arithmetic inside strings (Nix, issue 864)

[osh_.cc stdout] Expected 's=3\nitem=3\n', got 's=1 + 2\nitem=array[1+1]\n'

stdout:
s=1 + 2
item=array[1+1]
stderr:
  declare -i s
          ^~
[ stdin ]:1: 'declare' dynamic_fmt_dummy
  declare -i item
          ^~
[ stdin ]:5: 'declare' dynamic_fmt_dummy

dumb_alloc:
	gNumNew = 2464
	gNumDelete = 266
	gMemPos = 82192

	gNumMalloc = 237
	gNumFree = 0
	gMemPos2 = 12368
osh2 append in arith context

[osh stdout] Expected '3|3|2\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  declare -i i
          ^~
[ stdin ]:4: 'declare' doesn't accept flag -i
  declare -i j
          ^~
[ stdin ]:7: 'declare' doesn't accept flag -i
  (( j='x ' ))  # treated like zero
       ^
[ stdin ]:8: fatal: Invalid integer constant 'x '
osh_.py2 append in arith context

[osh_.py stdout] Expected '3|3|2\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  declare -i i
          ^~
[ stdin ]:4: 'declare' doesn't accept flag -i
  declare -i j
          ^~
[ stdin ]:7: 'declare' doesn't accept flag -i
  (( j='x ' ))  # treated like zero
       ^
[ stdin ]:8: fatal: Invalid integer constant 'x '
osh_.cc2 append in arith context

[osh_.cc stdout] Expected '3|3|2\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  declare -i i
          ^~
[ stdin ]:4: 'declare' dynamic_fmt_dummy
  declare -i j
          ^~
[ stdin ]:7: 'declare' dynamic_fmt_dummy
  (( j='x ' ))  # treated like zero
  ^~
[ stdin ]:8: fatal: Invalid integer constant 'x '

dumb_alloc:
	gNumNew = 2152
	gNumDelete = 202
	gMemPos = 74960

	gNumMalloc = 103
	gNumFree = 0
	gMemPos2 = 10256
osh3 declare array vs. string: mixing -a +a and () ''

[osh stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "['', '']\n"

stdout:
['', '']
stderr:
  declare +a 'xyz1=1'
          ^
[ stdin ]:1: 'declare' doesn't accept option +a
  declare +a 'xyz2=(2 3)'
          ^
[ stdin ]:2: 'declare' doesn't accept option +a
  declare -a 'xyz3=4'
             ^
[ stdin ]:3: 'declare' Got -a but RHS isn't an array
  declare -a 'xyz4=(5 6)'
             ^
[ stdin ]:4: 'declare' Got -a but RHS isn't an array
osh_.py3 declare array vs. string: mixing -a +a and () ''

[osh_.py stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "['', '']\n"

stdout:
['', '']
stderr:
  declare +a 'xyz1=1'
          ^
[ stdin ]:1: 'declare' doesn't accept option +a
  declare +a 'xyz2=(2 3)'
          ^
[ stdin ]:2: 'declare' doesn't accept option +a
  declare -a 'xyz3=4'
             ^
[ stdin ]:3: 'declare' Got -a but RHS isn't an array
  declare -a 'xyz4=(5 6)'
             ^
[ stdin ]:4: 'declare' Got -a but RHS isn't an array
osh_.cc3 declare array vs. string: mixing -a +a and () ''

[osh_.cc stdout] Expected "['1', '(2 3)', '4', '5', '6']\n", got "['', '']\n"

stdout:
['', '']
stderr:
  declare +a 'xyz1=1'
          ^
[ stdin ]:1: 'declare' dynamic_fmt_dummy
  declare +a 'xyz2=(2 3)'
          ^
[ stdin ]:2: 'declare' dynamic_fmt_dummy
  declare -a 'xyz3=4'
             ^
[ stdin ]:3: 'declare' Got -a but RHS isn't an array
  declare -a 'xyz4=(5 6)'
             ^
[ stdin ]:4: 'declare' Got -a but RHS isn't an array

dumb_alloc:
	gNumNew = 2380
	gNumDelete = 273
	gMemPos = 82192

	gNumMalloc = 176
	gNumFree = 0
	gMemPos2 = 11456
osh4 declare array vs. associative array

[osh stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got "['0']\n['0']\n"

stdout:
['0']
['0']
stderr:
  declare -a 'array=([a]=b [c]=d)'
             ^
[ stdin ]:1: 'declare' Got -a but RHS isn't an array
  declare -A 'assoc=([a]=b [c]=d)'
             ^
[ stdin ]:2: 'declare' Got -A but RHS isn't an associative array
osh_.py4 declare array vs. associative array

[osh_.py stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got "['0']\n['0']\n"

stdout:
['0']
['0']
stderr:
  declare -a 'array=([a]=b [c]=d)'
             ^
[ stdin ]:1: 'declare' Got -a but RHS isn't an array
  declare -A 'assoc=([a]=b [c]=d)'
             ^
[ stdin ]:2: 'declare' Got -A but RHS isn't an associative array
osh_.cc4 declare array vs. associative array

[osh_.cc stdout] Expected u"['1', '0', 'd']\n['2', 'a', 'c', 'b', 'd']\n", got "['0']\n['0']\n"

stdout:
['0']
['0']
stderr:
  declare -a 'array=([a]=b [c]=d)'
             ^
[ stdin ]:1: 'declare' Got -a but RHS isn't an array
  declare -A 'assoc=([a]=b [c]=d)'
             ^
[ stdin ]:2: 'declare' Got -A but RHS isn't an associative array

dumb_alloc:
	gNumNew = 2241
	gNumDelete = 224
	gMemPos = 77216

	gNumMalloc = 194
	gNumFree = 0
	gMemPos2 = 11840