This is the mail archive of the
mailing list for the libstdc++ project.
Re: [v3, testsuite] Introduce dg-add-options net_ts
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 16 Oct 2018 13:10:00 +0100
- Subject: Re: [v3, testsuite] Introduce dg-add-options net_ts
- References: <yddd0sakto5.fsf@CeBiTec.Uni-Bielefeld.DE>
On 16/10/18 13:38 +0200, Rainer Orth wrote:
Some of the new Networking TS tests FAIL before Solaris 11.4 like this:
FAIL: experimental/net/internet/address/v4/members.cc (test for excess errors)
Undefined first referenced
symbol in file
ld: fatal: symbol referencing errors. No output written to ./members.exe
collect2: error: ld returned 1 exit status
This happens because until the socket etc. functions were integrated
into libc in Solaris 11.4, they only lived in libsocket and libnsl.
The following patch fixes this by introducing a new dg-add-options
keyword net_ts (I'm open for suggestions for the name, of course;
networking_ts might be an option, too) and adding the requirement to the
With the patch below, all but one of the tests PASS on
FAIL: experimental/net/internet/resolver/ops/lookup.cc execution test
olver/ops/lookup.cc:35: void test01(): Assertion '!ec' failed.
The code in question is
auto addrs = resolv.resolve("localhost", "http", ec);
VERIFY( !ec );
but "http" is missing from /etc/services before Solaris 11.4.
Ok for mainline?