neovim/test/functional
Omri Sarig f520c1ef85
test: Fix failing test in case of special .bashrc (#12920)
The test of "replace environment" in the test module of
`test/functional/core/job_spec.lua` failed in case the bashrc file of
the user running the test has special actions in it (such actions were
printing to the screen from inside this file, or changing the bash mode
to be vi).

In order to fix this problem, the test now sets the shell to be
`/bin/sh` before running the command. Setting the shell to be `/bin/sh`
causes the running shell to run without the configuration of the user,
and so the test passes even in case of special .bashrc.
This change was done only for platforms other than Windows since it is
not relevant in windows.

The fix was applied to the specific test, even though it is possible
that related issues will arise in other tests. It seems like a big
overhead to make the fix work on all the possible tests, and it does not
worth this cost.
2020-09-28 22:20:49 +02:00
..
api api(extmarks): allow extrange past final newline 2020-09-17 21:23:52 +02:00
autocmd Add v:event.visual during TextYankPost (#12382) 2020-06-03 10:51:25 -04:00
autoread removed retry 2020-07-03 00:55:14 +05:30
cmdline doc: fix typos 2019-11-27 22:47:25 -08:00
core test: Fix failing test in case of special .bashrc (#12920) 2020-09-28 22:20:49 +02:00
eval vim-patch:8.2.0539: comparing two NULL list fails 2020-07-19 11:40:34 -04:00
ex_cmds fix: runtimepath always updates lua package.path 2020-08-10 16:48:35 -04:00
fixtures test/LSP: assert contents of log file 2020-02-16 22:09:28 -08:00
insert edit.c: Ensure undo sync when emulating <Esc>x #11706 2020-01-12 17:09:39 -08:00
legacy vim-patch:8.1.0295: no 'incsearch' highlighting for :vimgrep and similar 2020-09-11 10:33:20 +08:00
lua test: buffer updates: add visual charwise paste test 2020-09-19 15:50:35 +02:00
normal lua: move test helper function, map and filter, to vim.shared module 2020-02-18 17:43:10 +09:00
options win/env: fix stdpath()/XDG_* initialization, parsing #12829 2020-09-07 22:40:12 -07:00
plugin lsp: Fix bad sortText comparison (#12485) 2020-08-30 22:29:47 -07:00
provider Support for :perl, :perlfile, :perldo and perleval() (#12809) 2020-09-05 13:55:06 -07:00
shada shada: fix failed assertion on exit (#12692) 2020-07-31 16:08:34 +02:00
terminal tests/terminal/tui: wait 1ms to avoid data race in FreeBSD 2020-08-02 12:00:02 -04:00
ui screen: more work on fold_line replacement 2020-09-24 19:31:58 +02:00
viml tests: adjust to latest Vim patches 2019-05-05 14:05:25 +02:00
example_spec.lua screen.lua: remove screen:_on_event #11488 2019-12-01 01:06:10 -08:00
helpers.lua provider: align all foo#Detect() functions #12839 2020-09-05 15:02:46 -07:00
preload.lua test/functional/preload.lua: _set_fmode for Windows 2019-09-25 05:47:15 +02:00