[v2] testsuite/C++: cope with IPv6 being unavailable

Message ID 27a0e26d-dd2d-5072-613c-8fcce513eaec@suse.com
State Accepted
Headers
Series [v2] testsuite/C++: cope with IPv6 being unavailable |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Jan Beulich April 25, 2023, 3 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.
---
v2: Re-base.
  

Comments

Nathan Sidwell April 27, 2023, 10:23 p.m. UTC | #1
On 4/25/23 11:00, Jan Beulich wrote:
> When IPv6 is disabled in the kernel, the error message coming back from
> Cody::OpenInet6() is different from the sole so far expected one.

ok -- i couldn't find such a system :)
> ---
> v2: Re-base.
> 
> --- 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|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" }
  

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|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" }