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

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 19 12:30:10 PDT 2023


Author: Duo Wang
Date: 2023-10-19T12:30:05-07:00
New Revision: 3daa771047e16919f161a12a8a9124bbe13a89a6

URL: https://github.com/llvm/llvm-project/commit/3daa771047e16919f161a12a8a9124bbe13a89a6
DIFF: https://github.com/llvm/llvm-project/commit/3daa771047e16919f161a12a8a9124bbe13a89a6.diff

LOG: [libcxx][test] Fix empty.gen selftest on windows (#69403)

Using `true` as a no-op unfortunately does not work on windows, which
fails libcxx lit tests on windows. Lit provides the `:` internal shell
builtin which is equivalent to `true`.

Added: 
    

Modified: 
    libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
    libcxx/test/libcxx/selftest/sh.cpp/run-success.sh.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp b/libcxx/test/libcxx/selftest/gen.cpp/empty.gen.cpp
index 1915bede471f5e4..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: true
+// 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