t0301-credential-cache: use 'test_atexit' to stop the credentials helper
[gitweb.git] / t / t5551-http-fetch-smart.sh
index 8630b0cc39045f913987463a36388bcd72d6e248..9faf6349cf1c606ba1efa622d294cff174b368ec 100755 (executable)
@@ -429,5 +429,9 @@ test_expect_success 'GIT_TRACE_CURL_NO_DATA prevents data from being traced' '
        ! grep "=> Send data" err
 '
 
-stop_httpd
+test_expect_success 'server-side error detected' '
+       test_must_fail git clone $HTTPD_URL/error_smart/repo.git 2>actual &&
+       grep "server-side error" actual
+'
+
 test_done