]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Skip test #558 and #559 also when using a Win32 DLL
authorYang Tse <yangsita@gmail.com>
Thu, 9 Apr 2009 01:24:41 +0000 (01:24 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 9 Apr 2009 01:24:41 +0000 (01:24 +0000)
tests/libtest/lib558.c

index 6036fb2a82506ed7ec2b4512c6dd83fb9f2aa0b2..eebf6dfa51dcaa221d81210adc154b2c617556ff 100644 (file)
  * ones in the public API.
  */
 
+#if defined(CURL_HIDDEN_SYMBOLS)
+#  define SKIP_TEST 1
+#elif defined(WIN32) && !defined(CURL_STATICLIB)
+#  define SKIP_TEST 1
+#else
+#  undef  SKIP_TEST
+#endif
+
 
-#if !defined(CURL_HIDDEN_SYMBOLS)
+#if !defined(SKIP_TEST)
 
 #ifdef LIB559
 static Curl_addrinfo *fake_ai(void)
@@ -167,7 +175,7 @@ cleanup:
 }
 
 
-#else /* !defined(CURL_HIDDEN_SYMBOLS) */
+#else /* !defined(SKIP_TEST) */
 
 
 int test(char *URL)
@@ -178,4 +186,4 @@ int test(char *URL)
 }
 
 
-#endif /* !defined(CURL_HIDDEN_SYMBOLS) */
+#endif /* !defined(SKIP_TEST) */