public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] libstdc++: skip tests involving _Relative_pointer_impl for CHERI.
@ 2022-10-21 13:28 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-10-21 13:28 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:678c354afea2cd894d2857afd7df366db4dae703

commit 678c354afea2cd894d2857afd7df366db4dae703
Author: Victor Do Nascimento <Victor.DoNascimento@arm.com>
Date:   Fri Oct 21 14:27:21 2022 +0100

    libstdc++: skip tests involving _Relative_pointer_impl for CHERI.
    
    Given `relative pointer', as implemented by _Relative_pointer_impl, is
    not a valid pointer type in Morello libstdc++ skip tests which rely
    on this feature.
    
    libstdc++-v3/Changelog:
            * testsuite/23_containers/vector/ext_pointer/citerators.cc:
            Skip test for target cheri_capability_pure.
            * testsuite/23_containers/vector/ext_pointer/data_access.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/resize.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/types/1.cc: Likewise.
            * testsuite/23_containers/vector/ext_pointer/types/2.cc: Likewise.
            * testsuite/ext/ext_pointer/1.cc: Likewise.

Diff:
---
 libstdc++-v3/testsuite/23_containers/vector/ext_pointer/citerators.cc   | 2 +-
 libstdc++-v3/testsuite/23_containers/vector/ext_pointer/data_access.cc  | 2 ++
 .../testsuite/23_containers/vector/ext_pointer/modifiers/element.cc     | 2 ++
 .../testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc       | 2 ++
 .../testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc      | 2 ++
 libstdc++-v3/testsuite/23_containers/vector/ext_pointer/resize.cc       | 2 ++
 libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/1.cc      | 2 ++
 libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/2.cc      | 2 +-
 libstdc++-v3/testsuite/ext/ext_pointer/1.cc                             | 2 ++
 9 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/citerators.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/citerators.cc
index 11774d38350..b8b68e3e838 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/citerators.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/citerators.cc
@@ -1,4 +1,4 @@
-// { dg-do run { target c++11 } }
+// { dg-do run { target { { c++11 } && { ! cheri_capability_pure } } } }
 
 // Copyright (C) 2008-2020 Free Software Foundation, Inc.
 //
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/data_access.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/data_access.cc
index b135ce481f1..87a6f0e8d8e 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/data_access.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/data_access.cc
@@ -18,6 +18,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <vector>
 #include <testsuite_hooks.h>
 #include <ext/extptr_allocator.h>
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc
index ebba7e5a112..46cbabda9f4 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/element.cc
@@ -18,6 +18,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <vector>
 #include <stdexcept>
 #include <testsuite_hooks.h>
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc
index 7554aa39fcd..786bf4821e7 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc
@@ -20,6 +20,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <vector>
 #include <testsuite_hooks.h>
 #include <ext/extptr_allocator.h>
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc
index 21421e17e68..55d05fea722 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc
@@ -18,6 +18,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <vector>
 #include <testsuite_hooks.h>
 #include <ext/extptr_allocator.h>
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/resize.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/resize.cc
index ca35b7f603e..0f569a5358d 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/resize.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/resize.cc
@@ -17,6 +17,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <vector>
 #include <stdexcept>
 #include <testsuite_allocator.h>
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/1.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/1.cc
index 5c62e164c24..e0b5a812814 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/1.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/1.cc
@@ -18,6 +18,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 // This is a copy of vector/types/1.cc with altered allocator.
 // The operator+()s in this test initially failed the test -
 // they stress the accurate recognition, by the compiler,
diff --git a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/2.cc b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/2.cc
index ef71e3ce8de..07ae7a3b06c 100644
--- a/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/2.cc
+++ b/libstdc++-v3/testsuite/23_containers/vector/ext_pointer/types/2.cc
@@ -18,7 +18,7 @@
 // <http://www.gnu.org/licenses/>.
 
 
-// { dg-do run { target c++11 } }
+// { dg-do run { target { { c++11 } && { ! cheri_capability_pure } } } }
 
 // This is a copy of vector/types/1.cc with altered allocator.
 // The operator+()s in this test initially failed the test -
diff --git a/libstdc++-v3/testsuite/ext/ext_pointer/1.cc b/libstdc++-v3/testsuite/ext/ext_pointer/1.cc
index fd316ba016b..df5a092bdc2 100644
--- a/libstdc++-v3/testsuite/ext/ext_pointer/1.cc
+++ b/libstdc++-v3/testsuite/ext/ext_pointer/1.cc
@@ -18,6 +18,8 @@
 // <http://www.gnu.org/licenses/>.
 
 
+// { dg-do run { target { ! cheri_capability_pure } } }
+
 #include <algorithm>
 #include <testsuite_hooks.h>
 #include <ext/cast.h>

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

only message in thread, other threads:[~2022-10-21 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21 13:28 [gcc(refs/vendors/ARM/heads/morello)] libstdc++: skip tests involving _Relative_pointer_impl for CHERI Matthew Malcomson

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).