]> asedeno.scripts.mit.edu Git - git.git/commitdiff
t7502-commit: Skip SIGTERM test on Windows
authorJohannes Sixt <j6t@kdbg.org>
Wed, 25 Mar 2009 12:21:15 +0000 (13:21 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Wed, 25 Mar 2009 20:25:57 +0000 (21:25 +0100)
The implementation of exec on Windows is just a rough approximation of the
POSIX behavior. In particular, no real process "overlay" happens (a new
process is spawned instead and the parent process waits until the child
terminates). In particular, the process ID cannot be taken by the exec'd
process. But there is one test in t7502-commit.sh that depends on this.
We have to skip it on Windows.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t7502-commit.sh
t/test-lib.sh

index ad42c78d7c21497a6ebb4e9cef4efd6334f947da..56cd866019dcc871e5dea684f1d879fcf2c1b884 100755 (executable)
@@ -234,7 +234,7 @@ cat >.git/FAKE_EDITOR <<EOF
 # kill -TERM command added below.
 EOF
 
-test_expect_success 'a SIGTERM should break locks' '
+test_expect_success EXECKEEPSPID 'a SIGTERM should break locks' '
        echo >>negative &&
        ! "$SHELL_PATH" -c '\''
          echo kill -TERM $$ >> .git/FAKE_EDITOR
index b4b626e83774519fc4560239231756ca22df43fe..572301df1bb234f28bcc3d9b3f4484018a72506d 100644 (file)
@@ -689,10 +689,12 @@ case $(uname -s) in
        }
        # no POSIX permissions
        # backslashes in pathspec are converted to '/'
+       # exec does not inherit the PID
        ;;
 *)
        test_set_prereq POSIXPERM
        test_set_prereq BSLASHPSPEC
+       test_set_prereq EXECKEEPSPID
        ;;
 esac