mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
Port some small tests to littlecheck
This commit is contained in:
13
tests/checks/exec.fish
Normal file
13
tests/checks/exec.fish
Normal file
@@ -0,0 +1,13 @@
|
||||
#RUN: %fish %s
|
||||
exec cat < nosuchfile
|
||||
#CHECKERR: warning: An error occurred while redirecting file 'nosuchfile'
|
||||
#CHECKERR: open: No such file or directory
|
||||
echo "failed: $status"
|
||||
#CHECK: failed: 1
|
||||
not exec cat < nosuchfile
|
||||
#CHECKERR: warning: An error occurred while redirecting file 'nosuchfile'
|
||||
#CHECKERR: open: No such file or directory
|
||||
echo "neg failed: $status"
|
||||
#CHECK: neg failed: 0
|
||||
exec cat < /dev/null
|
||||
echo "not reached"
|
||||
Reference in New Issue
Block a user