diff --git a/Tests/base/NSURLConnection/test01.m b/Tests/base/NSURLConnection/test01.m index 689914b45..fb7b0ec74 100644 --- a/Tests/base/NSURLConnection/test01.m +++ b/Tests/base/NSURLConnection/test01.m @@ -75,6 +75,10 @@ int main(int argc, char **argv, char **env) "connection to dead(not-listening) HTTP service"); [del reset]; +#if !defined(HAVE_GNUTLS) +testHopeful = YES; +#endif + duration = 0.0; urlString = @"https://localhost:19750"; req = [NSURLRequest requestWithURL: [NSURL URLWithString: urlString]]; @@ -91,6 +95,10 @@ int main(int argc, char **argv, char **env) "connection to dead(not-listening) HTTPS service"); [del reset]; +#if !defined(HAVE_GNUTLS) +testHopeful = NO; +#endif + [arp release]; arp = nil; return 0; diff --git a/Tests/base/NSURLConnection/test03.m b/Tests/base/NSURLConnection/test03.m index 90713924e..01b1fe8d7 100644 --- a/Tests/base/NSURLConnection/test03.m +++ b/Tests/base/NSURLConnection/test03.m @@ -10,6 +10,11 @@ int main(int argc, char **argv, char **env) { + +#if !defined(HAVE_GNUTLS) +testHopeful = YES; +#endif + CREATE_AUTORELEASE_POOL(arp); NSFileManager *fm; NSBundle *bundle; @@ -143,5 +148,9 @@ int main(int argc, char **argv, char **env) DESTROY(arp); +#if !defined(HAVE_GNUTLS) +testHopeful = NO; +#endif + return 0; } diff --git a/Tests/base/NSURLConnection/test05.m b/Tests/base/NSURLConnection/test05.m index c9590d11f..334e4c1f3 100644 --- a/Tests/base/NSURLConnection/test05.m +++ b/Tests/base/NSURLConnection/test05.m @@ -9,6 +9,11 @@ int main(int argc, char **argv, char **env) { + +#if !defined(HAVE_GNUTLS) +testHopeful = YES; +#endif + CREATE_AUTORELEASE_POOL(arp); NSFileManager *fm; NSBundle *bundle; @@ -183,5 +188,9 @@ int main(int argc, char **argv, char **env) DESTROY(arp); +#if !defined(HAVE_GNUTLS) +testHopeful = NO; +#endif + return 0; } diff --git a/Tests/base/NSURLConnection/test07.m b/Tests/base/NSURLConnection/test07.m index 9c16424fb..d0c59aac1 100644 --- a/Tests/base/NSURLConnection/test07.m +++ b/Tests/base/NSURLConnection/test07.m @@ -8,6 +8,11 @@ int main(int argc, char **argv, char **env) { + +#if !defined(HAVE_GNUTLS) +testHopeful = YES; +#endif + CREATE_AUTORELEASE_POOL(arp); NSFileManager *fm; NSBundle *bundle; @@ -99,5 +104,9 @@ int main(int argc, char **argv, char **env) DESTROY(arp); +#if !defined(HAVE_GNUTLS) +testHopeful = NO; +#endif + return 0; }