From 0c93c3e99f563203269ef50e09c50c88666b2746 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 19 Jun 2014 10:45:31 +0100
Subject: [PATCH] do not run remote tests if AUTH_SERVER is unset

---
 pam/auth_client_test.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pam/auth_client_test.cc b/pam/auth_client_test.cc
index b3f0352..8f99bca 100644
--- a/pam/auth_client_test.cc
+++ b/pam/auth_client_test.cc
@@ -126,7 +126,8 @@ TEST_F(AuthClientTest, SSLFailsWithBadCAServerSide) {
 int main(int argc, char **argv) {
   server = getenv("AUTH_SERVER");
   if (server == NULL) {
-    server = "localhost:1617";
+    printf("This test requires a local auth server. Set the AUTH_SERVER environment variable to its address.\n");
+    exit(0);
   }
 
   ::testing::InitGoogleTest(&argc, argv);
-- 
GitLab