Results for command_.test.sh

statusoshosh_.pyosh_.cc
pass 14146
ok 111
FAIL 008
total151515
caseoshosh_.pyosh_.ccdescription
0pass pass pass Command block
1pass pass FAIL Permission denied
details
2pass pass pass Not a dir
3pass pass pass Name too long
4pass pass pass External programs don't have _OVM in environment
5pass pass FAIL File with no shebang is executed
details
6pass pass FAIL File with relative path and no shebang is executed
details
7pass pass FAIL File in relative subdirectory and no shebang is executed
details
8pass pass FAIL $PATH lookup
details
9pass pass FAIL filling $PATH cache, then insert the same command earlier in cache
details
10pass pass FAIL filling $PATH cache, then deleting command
details
11pass pass FAIL Non-executable on $PATH
details
12pass pass pass hash without args prints the cache
13pass pass pass hash with args
14ok ok ok hash -r doesn't allow additional args
detailsdetailsdetails
34 passed, 3 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc1 Permission denied

[osh_.cc status] Expected 126, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'IOError'
osh_.cc5 File with no shebang is executed

[osh_.cc stdout] Expected 'hi\n', got ''
[osh_.cc status] Expected 0, got 127

stdout:
stderr: 
  $TMP/no-shebang
  ^~~~
[ -c flag ]:1: '/no-shebang' not found
osh_.cc6 File with relative path and no shebang is executed

[osh_.cc stdout] Expected 'hi\n', got ''
[osh_.cc status] Expected 0, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'IOError'
osh_.cc7 File in relative subdirectory and no shebang is executed

[osh_.cc stdout] Expected 'hi\n', got ''
[osh_.cc status] Expected 0, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'IOError'
osh_.cc8 $PATH lookup

[osh_.cc stdout] Expected 'one\n', got ''
[osh_.cc status] Expected 0, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'IOError'
osh_.cc9 filling $PATH cache, then insert the same command earlier in cache

[osh_.cc stdout] Expected 'two\ntwo\none\n', got ''
[osh_.cc status] Expected 0, got 129

stdout:
stderr: 
terminate called after throwing an instance of 'IOError'
terminate called after throwing an instance of 'IOError'
terminate called after throwing an instance of 'IOError'
osh_.cc10 filling $PATH cache, then deleting command

[osh_.cc stdout] Expected 'two\nstatus=0\nstatus=127\n', got 'status=129\nstatus=129\n'

stdout:
status=129
status=129
stderr:
terminate called after throwing an instance of 'IOError'
terminate called after throwing an instance of 'IOError'
osh_.cc11 Non-executable on $PATH

[osh_.cc stdout] Expected 'two\nstatus=0\n', got 'status=129\n'

stdout:
status=129
stderr:
terminate called after throwing an instance of 'IOError'
osh14 hash -r doesn't allow additional args

stdout:
status=2
stderr:
  hash -r whoami >/dev/null  # avoid weird output with mksh
  ^~~~
[ stdin ]:1: 'hash' got extra arguments after -r
osh_.py14 hash -r doesn't allow additional args

stdout:
status=2
stderr:
  hash -r whoami >/dev/null  # avoid weird output with mksh
  ^~~~
[ stdin ]:1: 'hash' got extra arguments after -r
osh_.cc14 hash -r doesn't allow additional args

stdout:
status=2
stderr:
  hash -r whoami >/dev/null  # avoid weird output with mksh
  ^~~~
[ stdin ]:1: 'hash' got extra arguments after -r