diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-13 08:11:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-13 08:11:09 +0000 |
commit | 0bcb81843084f1b2cde5af408adcddebfb4c5875 (patch) | |
tree | a1b175ed4a9ef1c6d374034a9e95fcce500dcd01 /src/arm | |
parent | 6cdae7b7d0ed8b660f3dadeb2a2498d7d089e58a (diff) | |
download | gnunet-0bcb81843084f1b2cde5af408adcddebfb4c5875.tar.gz gnunet-0bcb81843084f1b2cde5af408adcddebfb4c5875.zip |
fix testcase failure if firefly is localhost
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/test_gnunet_service_arm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arm/test_gnunet_service_arm.c b/src/arm/test_gnunet_service_arm.c index f95031ff7..3e4b9db49 100644 --- a/src/arm/test_gnunet_service_arm.c +++ b/src/arm/test_gnunet_service_arm.c | |||
@@ -203,6 +203,17 @@ main (int argc, char *av[]) | |||
203 | "Failed to determine my own hostname, testcase not run.\n"); | 203 | "Failed to determine my own hostname, testcase not run.\n"); |
204 | return 0; | 204 | return 0; |
205 | } | 205 | } |
206 | if ( (0 == strcmp (hostname, | ||
207 | "localhost")) || | ||
208 | (0 == strcmp (hostname, | ||
209 | "ipv6-localnet")) ) | ||
210 | { | ||
211 | /* we cannot use 'localhost' as this would not trigger the | ||
212 | resolver service (see resolver_api.c); so in this case, | ||
213 | we fall back to (ab)using gnu.org. */ | ||
214 | strcpy (hostname, | ||
215 | "www.gnu.org"); | ||
216 | } | ||
206 | if (NULL == gethostbyname (hostname)) | 217 | if (NULL == gethostbyname (hostname)) |
207 | { | 218 | { |
208 | FPRINTF (stderr, | 219 | FPRINTF (stderr, |