spec test index / oilshell.org
134 passed, 6 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 10 Invalid string to int stdout: 5stderr: |
osh-cpp | 10 Invalid string to int stdout: 5stderr: |
osh | 47 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Unexpected token after arithmetic expression (Id.Word_Compound != Id.Arith_RParen) |
osh-cpp | 47 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Unexpected token after arithmetic expression (Id.Word_Compound != Id.Arith_RParen) |
osh | 50 Double subscript stdout: 2stderr: echo $(( a[1][1] )) ^ [ stdin ]:3: The [ operator doesn't apply to this expression |
osh-cpp | 50 Double subscript stdout: 2stderr: echo $(( a[1][1] )) ^ [ stdin ]:3: The [ operator doesn't apply to this expression |
osh | 58 Dynamic parsing of arithmetic [osh stdout] Expected '6\ntrue\nstatus=2\n', got '6\ntrue\n' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: 6 truestderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 201, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1171, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 365, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 2036, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1835, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1570, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 840, in _DoSimple status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags) File "/home/uke/oil/osh/cmd_eval.py", line 520, in _RunSimpleCommand run_flags) File "/home/uke/oil/core/executor.py", line 325, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 209, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/uke/oil/builtin/bracket_osh.py", line 271, in Run b = bool_ev.EvalB(bool_node) File "/home/uke/oil/osh/sh_expr_eval.py", line 1137, in EvalB i1 = self._StringToBigIntOrError(s1, blame_word=node.left) File "/home/uke/oil/osh/sh_expr_eval.py", line 1029, in _StringToBigIntOrError i = self._StringToBigInt(s, location) File "/home/uke/oil/osh/sh_expr_eval.py", line 395, in _StringToBigInt assert self.parse_ctx is not None AssertionError |
osh-cpp | 58 Dynamic parsing of arithmetic [osh-cpp stdout] Expected '6\ntrue\nstatus=2\n', got '6\ntrue\n' [osh-cpp status] Expected 0, got 1 stdout: 6 truestderr: AddressSanitizer:DEADLYSIGNAL ================================================================= ==2859==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x56352ffec452 bp 0x7fffdf673b90 sp 0x7fffdf673590 T0) ==2859==The signal is caused by a READ memory access. ==2859==Hint: address points to the zero page. #0 0x56352ffec451 in sh_expr_eval::ArithEvaluator::_StringToBigInt(BigStr*, syntax_asdl::loc_t*) _gen/bin/oils_for_unix.mycpp.cc:41169 #1 0x56352fff4c40 in sh_expr_eval::BoolEvaluator::_StringToBigIntOrError(BigStr*, syntax_asdl::word_t*) _gen/bin/oils_for_unix.mycpp.cc:41931 #2 0x56352fff5ef1 in sh_expr_eval::BoolEvaluator::EvalB(syntax_asdl::bool_expr_t*) _gen/bin/oils_for_unix.mycpp.cc:42070 #3 0x5635300a596e in bracket_osh::Test::Run(runtime_asdl::cmd_value__Argv*) _gen/bin/oils_for_unix.mycpp.cc:55919 #4 0x56352ff0a64e in executor::ShellExecutor::RunBuiltin(int, runtime_asdl::cmd_value__Argv*) _gen/bin/oils_for_unix.mycpp.cc:23665 #5 0x56352ff0bea7 in executor::ShellExecutor::RunSimpleCommand(runtime_asdl::cmd_value__Argv*, runtime_asdl::CommandStatus*, int) _gen/bin/oils_for_unix.mycpp.cc:23775 #6 0x56352ffa0fee in cmd_eval::CommandEvaluator::_RunSimpleCommand(runtime_asdl::cmd_value_t*, runtime_asdl::CommandStatus*, int) _gen/bin/oils_for_unix.mycpp.cc:35363 #7 0x56352ffa6e13 in cmd_eval::CommandEvaluator::_DoSimple(syntax_asdl::command__Simple*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:35734 #8 0x56352ffb21f7 in cmd_eval::CommandEvaluator::_Dispatch(syntax_asdl::command_t*, runtime_asdl::CommandStatus*) _gen/bin/oils_for_unix.mycpp.cc:36583 #9 0x56352ffb5002 in cmd_eval::CommandEvaluator::_Execute(syntax_asdl::command_t*) _gen/bin/oils_for_unix.mycpp.cc:36861 #10 0x56352ffb6d56 in cmd_eval::CommandEvaluator::ExecuteAndCatch(syntax_asdl::command_t*, int) _gen/bin/oils_for_unix.mycpp.cc:37032 #11 0x56352ff14dbb in main_loop::Batch(cmd_eval::CommandEvaluator*, cmd_parse::CommandParser*, ui::ErrorFormatter*, int) _gen/bin/oils_for_unix.mycpp.cc:24421 #12 0x5635300c0841 in shell::Main(BigStr*, args::Reader*, Dict<BigStr*, BigStr*>*, bool, pyutil::_ResourceLoader*, py_readline::Readline*) _gen/bin/oils_for_unix.mycpp.cc:57428 #13 0x56352fe66587 in oils_for_unix::AppBundleMain(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12382 #14 0x56352fe66ad3 in oils_for_unix::main(List<BigStr*>*) _gen/bin/oils_for_unix.mycpp.cc:12414 #15 0x5635300c29be in main _gen/bin/oils_for_unix.mycpp.cc:57453 #16 0x7f2802f0209a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a) #17 0x56352fe3ffc9 in _start (/home/uke/oil/_bin/cxx-asan/oils-for-unix+0x19dfc9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV _gen/bin/oils_for_unix.mycpp.cc:41169 in sh_expr_eval::ArithEvaluator::_StringToBigInt(BigStr*, syntax_asdl::loc_t*) ==2859==ABORTING |