fish-shell/tests
Fabian Homborg 4ffabd44be Don't add expansion error offset twice
Like the $status commit, this would add the offset to already existing
errors, so

```fish
(foo)
(bar)

something
```

would see the "(foo)" error, store the correct error location, then
see the "(bar)" error, and *add the offset of (bar)* to the "(foo)"
error location.

Solve this by making a new error list and appending it to the existing
ones.

There's a few other ways to solve this, including:

- Stopping after the first error (we only display the first anyway, I
think?)
- Making it so the source location has an "absolute" flag that shows
the offset has already been added (but do we ever need to add two offsets?)

I went with the simpler fix.
2021-09-30 18:09:58 +02:00
..
checks Don't add expansion error offset twice 2021-09-30 18:09:58 +02:00
pexpects tests/bind: Disable one flakey test 2021-09-24 20:41:09 +02:00
test_functions tests/tmux: Do actually loop 25 times 2021-09-24 18:27:14 +02:00
.gitignore tweak gitignore rules for *tests* directory 2017-02-20 20:29:43 -08:00
history_sample_bash Support $(cmd) command substitution as alternative to (cmd) 2021-07-13 21:33:42 +02:00
history_sample_corrupt1 Improve history robustness against corrupt files 2014-07-29 14:42:03 -07:00
history_sample_fish_1_x Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
history_sample_fish_2_0 Enforce that history items must end with trailing newlines 2021-05-10 14:23:07 -07:00
interactive.config Remove some unused functions from the test harness 2020-11-15 09:17:23 +01:00
interactive.fish Add pexpect tests to new test driver 2021-08-29 08:56:12 +02:00
test.fish cmake: Force color in the tests 2021-08-30 17:16:19 +02:00
test_driver.sh Fix test driver on BSDs 2021-09-17 11:18:39 -07:00
test_env.sh Split test_driver.sh into test_env.sh + test_driver.sh 2021-09-07 11:33:56 -05:00
test_util.fish Run each test fully independently in own environment 2021-08-29 08:56:12 +02:00