summaryrefslogtreecommitdiff
path: root/t/t9800-git-p4-basic.sh
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-11-23 22:35:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-11-26 19:00:49 (GMT)
commite6777fde8d0ede84202ed1cc5ec0a175e0e52ab0 (patch)
tree4f5dcbb8a1f406210727f37f4c6e9bd41e2a38bd /t/t9800-git-p4-basic.sh
parent78189bead3f5fde22ae651d66208a0e0a375a819 (diff)
downloadgit-e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0.zip
git-e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0.tar.gz
git-e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0.tar.bz2
git p4 test: display unresolvable host error
This test passes already. Make sure p4 diagnostic errors are displayed. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9800-git-p4-basic.sh')
-rwxr-xr-xt/t9800-git-p4-basic.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t9800-git-p4-basic.sh b/t/t9800-git-p4-basic.sh
index 05797c3..8c59796 100755
--- a/t/t9800-git-p4-basic.sh
+++ b/t/t9800-git-p4-basic.sh
@@ -183,6 +183,18 @@ test_expect_success 'initial import time from top change time' '
)
'
+test_expect_success 'unresolvable host in P4PORT should display error' '
+ test_when_finished cleanup_git &&
+ git p4 clone --dest="$git" //depot &&
+ (
+ cd "$git" &&
+ P4PORT=nosuchhost:65537 &&
+ export P4PORT &&
+ test_expect_code 1 git p4 sync >out 2>err &&
+ grep "connect to nosuchhost" err
+ )
+'
+
test_expect_success 'kill p4d' '
kill_p4d
'