Merge branch 'for-junio' of git://repo.or.cz/git/mingw/j6t
* 'for-junio' of git://repo.or.cz/git/mingw/j6t: t7502-commit: Skip SIGTERM test on Windows t7005-editor: Use $SHELL_PATH in the editor scripts
This commit is contained in:
@ -7,6 +7,7 @@ test_description='GIT_EDITOR, core.editor, and stuff'
|
|||||||
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
|
for i in GIT_EDITOR core_editor EDITOR VISUAL vi
|
||||||
do
|
do
|
||||||
cat >e-$i.sh <<-EOF
|
cat >e-$i.sh <<-EOF
|
||||||
|
#!$SHELL_PATH
|
||||||
echo "Edited by $i" >"\$1"
|
echo "Edited by $i" >"\$1"
|
||||||
EOF
|
EOF
|
||||||
chmod +x e-$i.sh
|
chmod +x e-$i.sh
|
||||||
|
@ -234,7 +234,7 @@ cat >.git/FAKE_EDITOR <<EOF
|
|||||||
# kill -TERM command added below.
|
# kill -TERM command added below.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test_expect_success 'a SIGTERM should break locks' '
|
test_expect_success EXECKEEPSPID 'a SIGTERM should break locks' '
|
||||||
echo >>negative &&
|
echo >>negative &&
|
||||||
! "$SHELL_PATH" -c '\''
|
! "$SHELL_PATH" -c '\''
|
||||||
echo kill -TERM $$ >> .git/FAKE_EDITOR
|
echo kill -TERM $$ >> .git/FAKE_EDITOR
|
||||||
|
@ -697,10 +697,12 @@ case $(uname -s) in
|
|||||||
}
|
}
|
||||||
# no POSIX permissions
|
# no POSIX permissions
|
||||||
# backslashes in pathspec are converted to '/'
|
# backslashes in pathspec are converted to '/'
|
||||||
|
# exec does not inherit the PID
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
test_set_prereq POSIXPERM
|
test_set_prereq POSIXPERM
|
||||||
test_set_prereq BSLASHPSPEC
|
test_set_prereq BSLASHPSPEC
|
||||||
|
test_set_prereq EXECKEEPSPID
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user