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

Duo Wang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 17 17:53:34 PDT 2023


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

Using `true` as a no-op unfortunately does not work on windows, which fails libcxx lit tests on windows. Using `cd .` is a good solution that should work across most platforms, but any suggestion is appreciated.

>From 23c4810c54f541c47ec4aac68af94598ab3247dc 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] [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 .



More information about the libcxx-commits mailing list