Results for serialize.test.sh

statusoshosh_.pyosh_.cc
pass 773
ok 331
FAIL 006
total101010
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL printf %q newline
details
1pass pass pass printf %q spaces
2ok ok FAIL printf %q quotes
detailsdetailsdetails
3ok ok ok printf %q unprintable
detailsdetailsdetails
4ok ok FAIL printf %q unicode
detailsdetailsdetails
5pass pass pass printf %q invalid unicode
6pass pass FAIL set
details
7pass pass FAIL declare
details
8pass pass pass ${var@Q}
9pass pass FAIL xtrace
details
17 passed, 7 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc0 printf %q newline

[osh_.cc stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh2 printf %q quotes

stdout:
$'\'"'
roundtrip-ok
stderr:
osh_.py2 printf %q quotes

stdout:
$'\'"'
roundtrip-ok
stderr:
osh_.cc2 printf %q quotes

[osh_.cc stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh_.py3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh_.cc3 printf %q unprintable

stdout:
$'\xff'
stderr:
dumb_alloc:
	gNumNew = 1879
	gNumDelete = 143
	gMemPos = 64800

	gNumMalloc = 92
	gNumFree = 0
	gMemPos2 = 9904
osh4 printf %q unicode

stdout:
'μ'
stderr:
osh_.py4 printf %q unicode

stdout:
'μ'
stderr:
osh_.cc4 printf %q unicode

[osh_.cc stdout] Expected "'\xce\xbc'\n", got "$'\xce\xbc'\n"

stdout:
$'μ'
stderr:
dumb_alloc:
	gNumNew = 1939
	gNumDelete = 155
	gMemPos = 66336

	gNumMalloc = 109
	gNumFree = 0
	gMemPos2 = 10176
osh_.cc6 set

[osh_.cc stdout] Expected "zz=$'one\\ntwo'\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc7 declare

[osh_.cc stdout] Expected "zz=$'one\\ntwo'\ndeclare -- zz=$'one\\ntwo'\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc9 xtrace

[osh_.cc stderr] Expected "+ echo $'one\\ntwo'\n", got "+ echo $'one\\ntwo'\n\ndumb_alloc:\n\tgNumNew = 1969\n\tgNumDelete = 167\n\tgMemPos = 67424\n\n\tgNumMalloc = 122\n\tgNumFree = 0\n\tgMemPos2 = 10384\n"

stdout:
one
two
stderr:
+ echo $'one\ntwo'

dumb_alloc:
	gNumNew = 1969
	gNumDelete = 167
	gMemPos = 67424

	gNumMalloc = 122
	gNumFree = 0
	gMemPos2 = 10384