[gcc(refs/users/aoliva/heads/testme)] libstdc++: xfail nanosleep tests on rtems

Alexandre Oliva aoliva@gcc.gnu.org
Thu Jun 23 07:15:55 GMT 2022


https://gcc.gnu.org/g:dc5b78b38953680cc59137d52a296bb6004d379e

commit dc5b78b38953680cc59137d52a296bb6004d379e
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Jun 23 04:13:06 2022 -0300

    libstdc++: xfail nanosleep tests on rtems
    
    Since it has been determined that nanosleep may return slightly too
    early on RTEMS, due to clock resolution differences, expect
    30_thread/async tests that have detected too-early wakeups to fail on
    RTEMS targets.
    
    
    for  libstdc++-v3/ChangeLog
    
            * testsuite/30_threads/async/async.cc: xfail on RTEMS.
    
    TN: V608-048

Diff:
---
 libstdc++-v3/testsuite/30_threads/async/async.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/testsuite/30_threads/async/async.cc b/libstdc++-v3/testsuite/30_threads/async/async.cc
index 38943ff1a9a..a7a6b6b8c26 100644
--- a/libstdc++-v3/testsuite/30_threads/async/async.cc
+++ b/libstdc++-v3/testsuite/30_threads/async/async.cc
@@ -2,6 +2,7 @@
 // { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-effective-target c++11 }
 // { dg-require-gthreads "" }
+// { dg-xfail-if "nanosleep may wake up too early" { target *-*-rtems* } }
 
 // Copyright (C) 2010-2022 Free Software Foundation, Inc.
 //


More information about the Libstdc++-cvs mailing list