spec test index / oilshell.org
101 passed, 9 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.cc | 0 Export sets a global variable [osh_.cc stdout] Expected 'X\nX\n', got 'None\nX\n' stdout: None Xstderr: dumb_alloc: gNumNew = 2115 gNumDelete = 168 gMemPos = 71600 gNumMalloc = 142 gNumFree = 0 gMemPos2 = 10848 |
osh_.cc | 1 Export sets a global variable that persists after export -n [osh_.cc stdout] Expected 'X\nX\nX\nNone\n', got 'None\nNone\nX\nX\n' stdout: None None X Xstderr: dumb_alloc: gNumNew = 2453 gNumDelete = 228 gMemPos = 81296 gNumMalloc = 243 gNumFree = 1 gMemPos2 = 12512 |
osh_.cc | 4 Export a global variable and unset it [osh_.cc stdout] Expected 'X\nX\ng=\nNone\n', got 'None\nNone\nX\ng=\n' stdout: None None X g=stderr: dumb_alloc: gNumNew = 2502 gNumDelete = 230 gMemPos = 82640 gNumMalloc = 288 gNumFree = 0 gMemPos2 = 13200 |
osh_.cc | 5 Export existing global variables [osh_.cc stdout] Expected 'g1\ng2\n', got 'None\nNone\n' stdout: None Nonestderr: dumb_alloc: gNumNew = 2024 gNumDelete = 163 gMemPos = 69264 gNumMalloc = 109 gNumFree = 2 gMemPos2 = 10384 |
osh_.cc | 6 Export existing local variable [osh_.cc stdout] Expected 'local1\nNone\n', got 'None\nNone\n' stdout: None Nonestderr: dumb_alloc: gNumNew = 2216 gNumDelete = 195 gMemPos = 75488 gNumMalloc = 158 gNumFree = 1 gMemPos2 = 11152 |
osh_.cc | 7 Export a local that shadows a global [osh_.cc stdout] Expected 'local1\nNone\nglobal\n', got 'None\nNone\nNone\n' stdout: None None Nonestderr: dumb_alloc: gNumNew = 2438 gNumDelete = 233 gMemPos = 82336 gNumMalloc = 213 gNumFree = 2 gMemPos2 = 12080 |
osh_.cc | 8 Export a variable before defining it [osh_.cc stdout] Expected 'u\n', got 'None\n' stdout: Nonestderr: dumb_alloc: gNumNew = 1925 gNumDelete = 141 gMemPos = 66528 gNumMalloc = 86 gNumFree = 1 gMemPos2 = 9984 |
osh_.cc | 9 Unset exported variable, then define it again. It's NOT still exported. [osh_.cc stdout] Expected 'u\nNone\nnewvalue\nNone\n', got 'None\nNone\nNone\nnewvalue\n' stdout: None None None newvaluestderr: dumb_alloc: gNumNew = 2437 gNumDelete = 219 gMemPos = 81616 gNumMalloc = 272 gNumFree = 1 gMemPos2 = 12992 |
osh_.cc | 10 Exporting a parent func variable (dynamic scope) [osh_.cc stdout] Expected 'before inner\nNone\ninner: X\nX\nafter inner\nX\n', got 'None\nNone\nNone\nbefore inner\ninner: X\nafter inner\n' stdout: None None None before inner inner: X after innerstderr: dumb_alloc: gNumNew = 2834 gNumDelete = 295 gMemPos = 94448 gNumMalloc = 386 gNumFree = 1 gMemPos2 = 14864 |
osh_.cc | 11 Dependent export setting [osh_.cc stdout] Expected 'v=None\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported dumb_alloc: gNumNew = 2019 gNumDelete = 164 gMemPos = 69056 gNumMalloc = 73 gNumFree = 2 gMemPos2 = 9792 |
osh | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported dumb_alloc: gNumNew = 1957 gNumDelete = 158 gMemPos = 67600 gNumMalloc = 53 gNumFree = 2 gMemPos2 = 9472 |
osh | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:6: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:8: 'undef' isn't an array |
osh_.py | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:6: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:8: 'undef' isn't an array |
osh_.cc | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:6: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:8: 'undef' isn't an array dumb_alloc: gNumNew = 4379 gNumDelete = 551 gMemPos = 135760 gNumMalloc = 783 gNumFree = 1 gMemPos2 = 21328 |
osh | 38 local after readonly [osh stdout] Expected u'', got 'y=0\ny=\n' [osh status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.py | 38 local after readonly [osh_.py stdout] Expected u'', got 'y=0\ny=\n' [osh_.py status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.cc | 38 local after readonly [osh_.cc stdout] Expected u'', got 'y=0\ny=\n' [osh_.cc status] Expected 1, got 0 stdout: y=0 y=stderr: dumb_alloc: gNumNew = 2243 gNumDelete = 207 gMemPos = 75280 gNumMalloc = 132 gNumFree = 1 gMemPos2 = 10704 |