[libcxx-commits] [libcxx] [libcxx][test] Fix empty.gen selftest on windows (PR #69403)

Duo Wang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 19 10:09:56 PDT 2023


https://github.com/wdunicornpro updated https://github.com/llvm/llvm-project/pull/69403

>From 1798c4522ef8db6628ac6623bb21ac95daaa9865 Mon Sep 17 00:00:00 2001
From: Duo Wang <Duo.Wang at sony.com>
Date: Tue, 17 Oct 2023 17:15:15 -0700
Subject: [PATCH 1/2] [libcxx][test] Fix empty.gen selftest on windows

---
 libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp b/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
index 1915bede471f5e4..21fa2adddfbc460 100644
--- a/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
+++ b/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
@@ -8,4 +8,4 @@
 
 // Make sure we can generate no tests at all
 
-// RUN: true
+// RUN: cd .

>From 40fe3bc023569a95fe62d3b2ccbe53d6afa8266b Mon Sep 17 00:00:00 2001
From: Duo Wang <Duo.Wang at sony.com>
Date: Wed, 18 Oct 2023 14:01:12 -0700
Subject: [PATCH 2/2] refine with Lit builtin command

---
 libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp     | 2 +-
 libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp b/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
index 21fa2adddfbc460..e0a36db25775e67 100644
--- a/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
+++ b/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
@@ -8,4 +8,4 @@
 
 // Make sure we can generate no tests at all
 
-// RUN: cd .
+// RUN: :
diff --git a/libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp b/libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp
index 1d8747c71948454..724d03ddb848e10 100644
--- a/libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp
+++ b/libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp
@@ -8,4 +8,4 @@
 
 // Make sure the test passes if it succeeds to run
 
-// RUN: true
+// RUN: :



More information about the libcxx-commits mailing list