eval tests: Fix path

I tested this manually (`littlecheck.py -s fish=fish tests/checks/eval.fish`) from the base directory, which means I got
"tests/checks/eval", while the real test gets "checks/eval".

I then reran `make test_fishscript`, but that didn't pull in the
updated test - we should really handle that better.
This commit is contained in:
Fabian Homborg 2019-07-03 15:14:49 +02:00
parent f1fa8d5f5b
commit 65eb4cd9d3

View file

@ -16,12 +16,12 @@ false; eval false; echo $status
# Test return status in case of parsing error
false; eval "("; echo $status
# CHECK: 1
# CHECKERR: tests/checks/eval.fish (line {{\d+}}): Unexpected end of string, expecting ')'
# CHECKERR: {{.*}}checks/eval.fish (line {{\d+}}): Unexpected end of string, expecting ')'
# CHECKERR: (
# CHECKERR: ^
false; eval '""'; echo $status
# CHECK: 1
# CHECKERR: tests/checks/eval.fish (line {{\d+}}): The expanded command was empty.
# CHECKERR: {{.*}}checks/eval.fish (line {{\d+}}): The expanded command was empty.
# CHECKERR: ""
# CHECKERR: ^