libstdc++: xfail experimental/net tests on rtems
Some net/timer/waitable tests fail on rtems because poll() is not available. The above, as well as net/internet/resolver/ops tests and net/timer/waitable/cons.cc, will fail early at runtime unless mkfifo is enabled in the RTEMS configuration, because the io_context ctor throws when pipe() fails. However, even enabling pipes and adjusting the net_ts link command to use --gc-sections for -lbsd as recommended, both net/internet/resolver/ops still fail at runtime. for libstdc++-v3/ChangeLog * testsuite/lib/dg-options.exp (add_options_for_net_ts): Add -Wl,--gc-sections for RTEMS targets. * testsuite/experimental/net/timer/waitable/dest.cc: Link-time xfail on RTEMS. * testsuite/experimental/net/timer/waitable/ops.cc: Likewise. * testsuite/experimental/net/internet/resolver/ops/lookup.cc: Execution-time xfail on RTEMS. * testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise.
This commit is contained in:
parent
b06a282921
commit
250b95a994
5 changed files with 5 additions and 5 deletions
|
@ -18,6 +18,7 @@
|
|||
// { dg-do run { target c++14 } }
|
||||
// { dg-require-effective-target net_ts_ip }
|
||||
// { dg-add-options net_ts }
|
||||
// { dg-xfail-run-if "io_context requires a working pipe" { *-*-rtems* } }
|
||||
|
||||
#include <experimental/internet>
|
||||
#include <testsuite_hooks.h>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
// { dg-do run { target c++14 } }
|
||||
// { dg-require-effective-target net_ts_ip }
|
||||
// { dg-add-options net_ts }
|
||||
// { dg-xfail-run-if "io_context requires a working pipe" { *-*-rtems* } }
|
||||
|
||||
#include <experimental/internet>
|
||||
#include <testsuite_hooks.h>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
// { dg-do run { target c++14 } }
|
||||
// { dg-add-options libatomic }
|
||||
// { dg-xfail-if "poll not available" { *-*-rtems* } }
|
||||
|
||||
#include <experimental/timer>
|
||||
#include <testsuite_hooks.h>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
// { dg-do run { target c++14 } }
|
||||
// { dg-add-options libatomic }
|
||||
// { dg-xfail-if "poll not available" { *-*-rtems* } }
|
||||
|
||||
#include <experimental/timer>
|
||||
#include <testsuite_hooks.h>
|
||||
|
|
|
@ -281,11 +281,7 @@ proc add_options_for_net_ts { flags } {
|
|||
if { [istarget *-*-solaris2*] } {
|
||||
return "$flags -lsocket -lnsl"
|
||||
} elseif { [istarget *-*-rtems*] } {
|
||||
# Adding -Wl,--gc-sections would enable a few more tests to
|
||||
# link, but all of them fail at runtime anyway, because the
|
||||
# io_context ctor calls pipe(), which always fails, and thus
|
||||
# the ctor throws a system error.
|
||||
return "$flags -lbsd"
|
||||
return "$flags -lbsd -Wl,--gc-sections"
|
||||
}
|
||||
return $flags
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue