public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1237] libstdc++: xfail rename tests on rtems
@ 2022-06-24  2:31 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2022-06-24  2:31 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:5d8a5f04acec697c893e1c2263032bc01e2c2f2b

commit r13-1237-g5d8a5f04acec697c893e1c2263032bc01e2c2f2b
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Jun 23 23:20:52 2022 -0300

    libstdc++: xfail rename tests on rtems
    
    ::rename on RTEMS does not meet several POSIX requirements, despite
    compliance with C and C++ standards.  ::std::filesystem::rename, in
    turn, has requirements borrowed from POSIX, so it would have to be a
    lot more than a simple wrapper around ::rename on RTEMS, and even then
    fall short.
    
    Until RTEMS reimplements ::rename for POSIX compliance, expect
    filesystem rename tests to fail on it.
    
    
    for  libstdc++-v3/ChangeLog
    
            * testsuite/27_io/filesystem/operations/rename.cc: xfail on
            rtems.
            * testsuite/experimental/filesystem/operations/rename.cc:
            Likewise.

Diff:
---
 libstdc++-v3/testsuite/27_io/filesystem/operations/rename.cc        | 1 +
 libstdc++-v3/testsuite/experimental/filesystem/operations/rename.cc | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libstdc++-v3/testsuite/27_io/filesystem/operations/rename.cc b/libstdc++-v3/testsuite/27_io/filesystem/operations/rename.cc
index b74e1133a76..983374f42e4 100644
--- a/libstdc++-v3/testsuite/27_io/filesystem/operations/rename.cc
+++ b/libstdc++-v3/testsuite/27_io/filesystem/operations/rename.cc
@@ -17,6 +17,7 @@
 
 // { dg-do run { target c++17 } }
 // { dg-require-filesystem-ts "" }
+// { dg-xfail-run-if "rename is not POSIX-compliant" { *-*-rtems* } }
 
 #include <filesystem>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/rename.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/rename.cc
index 37e743b770f..762b943888f 100644
--- a/libstdc++-v3/testsuite/experimental/filesystem/operations/rename.cc
+++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/rename.cc
@@ -18,6 +18,7 @@
 // { dg-options "-DUSE_FILESYSTEM_TS -lstdc++fs" }
 // { dg-do run { target c++11 } }
 // { dg-require-filesystem-ts "" }
+// { dg-xfail-run-if "rename is not POSIX-compliant" { *-*-rtems* } }
 
 #include <experimental/filesystem>
 #include <testsuite_hooks.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-24  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  2:31 [gcc r13-1237] libstdc++: xfail rename tests on rtems Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).