git-clone
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name git-clone.diff

resolv/tst-resolv-res_init-skeleton.c

index 3b7b4129e31eaa220855a48a7da46660dd7db765..a1bf1109107a90fb6874bdc74cef452559369542 100644 (file)
@@ -341,11 +341,15 @@ run_res_init (void *closure)
     setenv ("RES_OPTIONS", ctx->t->res_options, 1);
   if (ctx->t->hostname != NULL)
     {
+#ifdef CLONE_NEWUTS
       /* This test needs its own namespace, to avoid changing the host
          name for the parent, too.  */
       TEST_VERIFY_EXIT (unshare (CLONE_NEWUTS) == 0);
       if (sethostname (ctx->t->hostname, strlen (ctx->t->hostname)) != 0)
         FAIL_EXIT1 ("sethostname (\"%s\"): %m", ctx->t->hostname);
+#else
+      FAIL_UNSUPPORTED ("clone (CLONE_NEWUTS) not supported");
+#endif
     }
 
   switch (ctx->init)