From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 3407938560A1; Thu, 23 Jun 2022 12:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3407938560A1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] libstdc++: xfail rename tests on rtems X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 5f62dd2f6ee29af0cce8d92cd1e4105daa9271f8 X-Git-Newrev: 82cdd58711ceba3f3c41a557bfcc8cf354115e83 Message-Id: <20220623124438.3407938560A1@sourceware.org> Date: Thu, 23 Jun 2022 12:44:38 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2022 12:44:38 -0000 https://gcc.gnu.org/g:82cdd58711ceba3f3c41a557bfcc8cf354115e83 commit 82cdd58711ceba3f3c41a557bfcc8cf354115e83 Author: Alexandre Oliva Date: Thu Jun 23 04:12:22 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 #include 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 #include