fish-shell/tests
Fabian Boehm 11c8d9684e
Make NULs work for builtins (#9859)
* Make NULs work for builtins

This switches from passing a c-string to output_stream_t::append to
passing a proper string.

That means a builtin that prints a NUL no longer crashes with "thread '' panicked
at 'String contained intermediate NUL character: ".

Instead, it will actually handle the NUL, even as an argument.

That means something like

`echo foo\x00bar` will now actually print a NUL instead of truncating
after the `foo` because we passed c-strings around everywhere.

The former is *necessary* for e.g. `string`, the latter is a change
that on the whole makes dealing with NULs easier, but it is a
behavioral change.

To restore the c-string behavior we would have to truncate arguments
at NUL.

See #9739.

* Use AsRef instead of trait bound
2023-06-22 20:50:22 +02:00
..
checks Make NULs work for builtins (#9859) 2023-06-22 20:50:22 +02:00
pexpects share/config.fish: Quit if job expansion hack errors 2023-06-10 15:36:36 +02:00
test_functions [tests] Increase tmux-sleep duration when not under CI 2022-09-16 18:26:49 -05: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 Only retry failed pexpect tests under CI 2022-10-25 13:40:21 -05:00
test_driver.sh fix build when path has spaces in it. 2021-10-22 02:27:19 -07:00
test_env.sh tests/test_env.sh: fix copy paste error so we export XDG_RUNTIME_DIR 2021-10-23 18:59:15 +02:00
test_util.fish Run each test fully independently in own environment 2021-08-29 08:56:12 +02:00
test.fish cmake: Force color in the tests 2021-08-30 17:16:19 +02:00