diff options
Diffstat (limited to 't/chainlint/chain-break-background.test')
-rw-r--r-- | t/chainlint/chain-break-background.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/chainlint/chain-break-background.test b/t/chainlint/chain-break-background.test new file mode 100644 index 0000000000..c68e1b04d5 --- /dev/null +++ b/t/chainlint/chain-break-background.test @@ -0,0 +1,12 @@ +test_expect_success 'chain-break-background' ' +JGIT_DAEMON_PID= && +git init --bare empty.git && +>empty.git/git-daemon-export-ok && +mkfifo jgit_daemon_output && +{ +# LINT: exit status of "&" is always 0 so &&-chaining immaterial + jgit daemon --port="$JGIT_DAEMON_PORT" . >jgit_daemon_output & + JGIT_DAEMON_PID=$! +} && +test_expect_code 2 git ls-remote --exit-code git://localhost:$JGIT_DAEMON_PORT/empty.git +' |