fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

NahorAdd tests to exercise all builtin error messages99d63c21f

master
554 B19 linesraw
1#RUN: fish=%fish %fish %s
2
3# See `tests/pexpects/fkr.py` for non-error tests
4
5fish_key_reader --continuous=invalid
6# CHECKERR: fish_key_reader: --continuous=invalid: option does not take an argument
7
8fish_key_reader --invalid-opt
9# CHECKERR: fish_key_reader: --invalid-opt: unknown option
10
11fish_key_reader some-unexpected-args
12# CHECKERR: Expected no arguments, got 1
13
14echo | builtin fish_key_reader
15# CHECKERR: Stdin must be attached to a tty.
16
17set -l dir (dirname $fish)
18echo | command $dir/fish_key_reader
19# CHECKERR: Stdin must be attached to a tty.