]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/C++: cope with IPv6 being unavailable
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Apr 2023 06:49:35 +0000 (08:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Apr 2023 06:49:35 +0000 (08:49 +0200)
When IPv6 is disabled in the kernel, the error message coming back from
Cody::OpenInet6() is different from the sole so far expected one.

gcc/testsuite/

* g++.dg/modules/bad-mapper-3.C: Relax failure pattern.

gcc/testsuite/g++.dg/modules/bad-mapper-3.C

index ab14dd39a67a524da704f9a8c4e05fcebca966dc..2a57956afc87a5cb0d094f86198a78a8bf494160 100644 (file)
@@ -1,6 +1,6 @@
 //  { dg-additional-options "-fmodules-ts -fmodule-mapper=localhost:172477262" }
 import unique3.bob;
-// { dg-error {failed (connecting|disabled) mapper 'localhost:172477262'} "" { target *-*-* } 0 }
+// { dg-error {failed (socket|connecting|disabled) mapper 'localhost:172477262'} "" { target *-*-* } 0 }
 // { dg-prune-output "fatal error:" }
 // { dg-prune-output "failed to read" }
 // { dg-prune-output "compilation terminated" }