[libcxx-commits] [libcxx] [libc++][test] XFAIL sized deallocation tests for AIX, z/OS, and MinGW (PR #98960)
Xing Xue via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 16 08:58:44 PDT 2024
https://github.com/xingxue-ibm updated https://github.com/llvm/llvm-project/pull/98960
>From c26ca8ca1aa04641dc6d7eb8d66f02af6e5ddd2b Mon Sep 17 00:00:00 2001
From: Xing Xue <xingxue at outlook.com>
Date: Mon, 15 Jul 2024 20:35:45 +0000
Subject: [PATCH 1/2] XFAIL sized deallocation tests for AIX, z/OS, and MinGW.
---
.../new.delete/new.delete.array/sized_delete_array14.pass.cpp | 3 +++
.../new.delete/new.delete.single/sized_delete14.pass.cpp | 3 +++
2 files changed, 6 insertions(+)
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
index 01467ca9911e1..15df87d279867 100644
--- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
@@ -15,6 +15,9 @@
// XFAIL: apple-clang
// XFAIL: using-built-library-before-llvm-11
+// AIX, z/OS, and MinGW default to -fno-sized-deallocation.
+// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-mingw32{{.*}}
+
#include <new>
#include <cstddef>
#include <cstdlib>
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
index fd7f2dbabdacc..d3c736fcbf135 100644
--- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
@@ -15,6 +15,9 @@
// XFAIL: apple-clang
// XFAIL: using-built-library-before-llvm-11
+// AIX, z/OS, and MinGW default to -fno-sized-deallocation.
+// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-mingw32{{.*}}
+
#include <new>
#include <cstddef>
#include <cstdlib>
>From 352b4335f88b8d93e8bb56c6c1c5b7d604ea662c Mon Sep 17 00:00:00 2001
From: Xing Xue <xingxue at outlook.com>
Date: Tue, 16 Jul 2024 16:06:04 +0000
Subject: [PATCH 2/2] Use target={{.+}}-windows-gnu for MinGW.
---
.../new.delete/new.delete.array/sized_delete_array14.pass.cpp | 2 +-
.../new.delete/new.delete.single/sized_delete14.pass.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
index 15df87d279867..85b641322d99e 100644
--- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp
@@ -16,7 +16,7 @@
// XFAIL: using-built-library-before-llvm-11
// AIX, z/OS, and MinGW default to -fno-sized-deallocation.
-// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-mingw32{{.*}}
+// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-windows-gnu
#include <new>
#include <cstddef>
diff --git a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
index d3c736fcbf135..ae614a1432f7d 100644
--- a/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
+++ b/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp
@@ -16,7 +16,7 @@
// XFAIL: using-built-library-before-llvm-11
// AIX, z/OS, and MinGW default to -fno-sized-deallocation.
-// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-mingw32{{.*}}
+// XFAIL: target={{.+}}-aix{{.*}}, target={{.+}}-zos{{.*}}, target={{.+}}-windows-gnu
#include <new>
#include <cstddef>
More information about the libcxx-commits
mailing list