test editor fail reporting
This commit is contained in:
parent
d7b253a52f
commit
525586bf08
@ -57,6 +57,16 @@ class CMDTEST_basic < Cmdtest::Testcase
|
|||||||
created_files ["output.txt"]
|
created_files ["output.txt"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_editor_fail
|
||||||
|
import_file "test/faulty_editor.sh", "./"
|
||||||
|
|
||||||
|
cmd "EDITOR=./faulty_editor.sh vimdir -n ./" do
|
||||||
|
exit_nonzero
|
||||||
|
created_files ["vimdir_test_file.vimdir"]
|
||||||
|
stderr_equal /\A.*error.+\n.*notice.+\n/
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
2
test/faulty_editor.sh
Executable file
2
test/faulty_editor.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exit 17
|
Loading…
x
Reference in New Issue
Block a user