Update tests

Fish is always executed as ../test/root/bin/fish in these expect tests
This commit is contained in:
Aaron Gyes 2018-11-27 11:42:05 -08:00
parent 1cb8b2a87b
commit 36367e4882
8 changed files with 19 additions and 19 deletions

View file

@ -1,13 +1,13 @@
####################
# Slices
fish: Invalid index value
../test/root/bin/fish: Invalid index value
echo "$foo[d]"
^
fish: Invalid index value
../test/root/bin/fish: Invalid index value
echo $foo[d]
^
fish: Invalid index value
../test/root/bin/fish: Invalid index value
echo ()[d]
^
@ -16,7 +16,7 @@ echo ()[d]
####################
# Catch your breath
fish: $) is not a valid variable in fish.
../test/root/bin/fish: $) is not a valid variable in fish.
echo $$paren
^

View file

@ -7,13 +7,13 @@
####################
# Testing -V with changed variables
fish: function: Illegal function name '-a'
../test/root/bin/fish: function: Illegal function name '-a'
function -a arg1 arg2 name2 ; end
^
fish: function: Illegal function name '--argument-names'
../test/root/bin/fish: function: Illegal function name '--argument-names'
function --argument-names arg1 arg2 name4 ; end
^
fish: function: Unexpected positional argument 'abc'
../test/root/bin/fish: function: Unexpected positional argument 'abc'
function name5 abc --argument-names def ; end
^
@ -25,7 +25,7 @@ function name5 abc --argument-names def ; end
####################
# Checking reserved names
fish: function: The name 'test' is reserved,
../test/root/bin/fish: function: The name 'test' is reserved,
and can not be used as a function name
function test; echo banana; end
^

View file

@ -1,4 +1,4 @@
<W> fish: An error occurred while redirecting file '.'
<W> ../test/root/bin/fish: An error occurred while redirecting file '.'
open: Is a directory
status: Invalid combination of options,
you cannot do both 'is-interactive' and 'is-login' in the same invocation

View file

@ -34,7 +34,7 @@
####################
# For loops with read-only vars is an error (#4342)
fish: You cannot use read-only variable 'status' in a for loop
../test/root/bin/fish: You cannot use read-only variable 'status' in a for loop
for status in a b c
^

View file

@ -1,3 +1,3 @@
fish: No matches for wildcard '*ee*'. See `help expand`.
../test/root/bin/fish: No matches for wildcard '*ee*'. See `help expand`.
case *ee*
^

View file

@ -4,14 +4,14 @@
####################
# Command sub at the limit should fail
fish: Too much data emitted by command substitution so it was discarded
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded
set b (string repeat -n 512 x)
^
####################
# Command sub over the limit should fail
fish: Too much data emitted by command substitution so it was discarded
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded
set -l x (string repeat -n $argv x)
^
@ -28,7 +28,7 @@ in command substitution
####################
# Same builtin in a command substitution is affected
fish: Too much data emitted by command substitution so it was discarded
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded
echo this will fail (string repeat --max 513 b) to output anything
^

View file

@ -1,6 +1,6 @@
fish: The expanded command was empty.
../test/root/bin/fish: The expanded command was empty.
$EMPTY_VARIABLE
^
fish: The expanded command was empty.
../test/root/bin/fish: The expanded command was empty.
"$EMPTY_VARIABLE"
^

View file

@ -1,9 +1,9 @@
fish: array indices start at 1, not 0.
../test/root/bin/fish: array indices start at 1, not 0.
echo $foo[0]
^
fish: array indices start at 1, not 0.
../test/root/bin/fish: array indices start at 1, not 0.
echo $foo[ 0 ]
^
fish: array indices start at 1, not 0.
../test/root/bin/fish: array indices start at 1, not 0.
echo $foo[ 00 ]
^