Results for builtin-history.test.sh

statusoshosh-cpp
pass 44
ok 11
FAIL 11
total66
caseoshosh-cppdescription
0pass pass history -a
1pass pass history -r
2pass pass HISTFILE is defined initially
3pass pass HISTFILE must point to a file
4ok ok HISTFILE must be a string
detailsdetails
5FAIL FAIL history -d to delete history item
detailsdetails
8 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh4 HISTFILE must be a string

stdout:
1
^D
stderr:
[osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$   history -a
  ^~~~~~~
[ stdin -i ]:3: fatal: $HISTFILE should only ever be a string
[osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh$ [??? no location ???] osh: Failed to move process group 18869 to foreground: No such process
osh-cpp4 HISTFILE must be a string

stdout:
1
^D
stderr:
[osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$   history -a
  ^~~~~~~
[ stdin -i ]:3: fatal: $HISTFILE should only ever be a string
[osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$ [osh] lenny /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtin-history.test.sh/04-osh-cpp$ [??? no location ???] osh: Failed to move process group 18979 to foreground: No such process
osh5 history -d to delete history item

[osh stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=2\nstatus=2\nstatus=2\n'

stdout:
status=2
status=2
status=2
stderr:
  history -d 1
  ^~~~~~~
[ stdin ]:1: 'history' couldn't find item 1
  history -d -1
             ^~
[ stdin ]:4: 'history' got invalid integer for -d: -1
  history -d -2
             ^~
[ stdin ]:6: 'history' got invalid integer for -d: -2
osh-cpp5 history -d to delete history item

[osh-cpp stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got 'status=0\nstatus=2\nstatus=2\n'

stdout:
status=0
status=2
status=2
stderr:
  history -d -1
             ^~
[ stdin ]:4: 'history' got invalid integer for -d: -1
  history -d -2
             ^~
[ stdin ]:6: 'history' got invalid integer for -d: -2