testsuite/C++: cope with IPv6 being unavailable

Message ID 876d560d-db0b-1cab-af2f-c54633263eeb@suse.com
State New
Headers
Series testsuite/C++: cope with IPv6 being unavailable |

Commit Message

Jan Beulich June 28, 2022, 2:06 p.m. UTC
  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.
  

Patch

--- a/gcc/testsuite/g++.dg/modules/bad-mapper-3.C
+++ b/gcc/testsuite/g++.dg/modules/bad-mapper-3.C
@@ -1,6 +1,6 @@ 
 //  { dg-additional-options "-fmodules-ts -fmodule-mapper=localhost:172477262" }
 import unique3.bob;
-// { dg-error {failed connecting mapper 'localhost:172477262'} "" { target *-*-* } 0 }
+// { dg-error {failed (socket|connecting) mapper 'localhost:172477262'} "" { target *-*-* } 0 }
 // { dg-prune-output "fatal error:" }
 // { dg-prune-output "failed to read" }
 // { dg-prune-output "compilation terminated" }