www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19997] New: std.socket.InternetHost.getHostByAddr unittest

https://issues.dlang.org/show_bug.cgi?id=19997

          Issue ID: 19997
           Summary: std.socket.InternetHost.getHostByAddr unittest does
                    not work with IPv6
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dlang vild.io

The unittest[1] does not work when www.digitalmars.com resolved to a IPv6
address.

[1]
https://github.com/dlang/phobos/blob/35e9f2fbbaab75815c01a7e6b7d207e98afb9d56/std/socket.d#L790

---

core.exception.AssertError std/socket.d(790): unittest failure
----------------
??:? onAssertErrorMsg [0x7f7b50a58a23]
??:? onUnittestErrorMsg [0x7f7b50a58aa5]
??:? _d_unittest_msg [0x7f7b50a58d64]
??:? _d_unittest [0x7f7b50a58da5]
??:? _d_unittestp [0x7f7b50a58d1d]
??:?  safe void std.socket.__unittest_L773_C7() [0x7f7b4f81033c]
??:? void std.socket.__modtest() [0x7f7b4f81c636]
../druntime/src/test_runner.d:61 [0x56463967c9db]
../druntime/src/test_runner.d:32 [0x56463967c8e7]
../druntime/src/test_runner.d:13 [0x56463967c71f]
??:? runModuleUnitTests [0x7f7b50a59946]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() [0x7f7b50a80c49]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) [0x7f7b50a80bc4]
??:? _d_run_main [0x7f7b50a80b2a]
??:? [0x56463967cfa1]
??:? __libc_start_main [0x7f7b4b853ee2]
```

--
Jun 22 2019