[libcxx-commits] [libcxx] 181763d - [libc++] Simplify selftest to avoid passing arguments to it

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 9 10:18:27 PST 2021


Author: Louis Dionne
Date: 2021-11-09T13:18:23-05:00
New Revision: 181763d4756a2d1d6cb33b3d21fa4f0d3460e34b

URL: https://github.com/llvm/llvm-project/commit/181763d4756a2d1d6cb33b3d21fa4f0d3460e34b
DIFF: https://github.com/llvm/llvm-project/commit/181763d4756a2d1d6cb33b3d21fa4f0d3460e34b.diff

LOG: [libc++] Simplify selftest to avoid passing arguments to it

This makes the test pass on executors that don't support passing additional
arguments.

Differential Revision: https://reviews.llvm.org/D113483

Added: 
    

Modified: 
    libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp b/libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp
index da69663bdd814..99bfb9a3c97d8 100644
--- a/libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp
+++ b/libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp
@@ -14,15 +14,11 @@
 // - %{exec}
 
 // RUN: %{cxx} %s %{flags} %{compile_flags} %{link_flags} -o %t.exe
-// RUN: %{exec} %t.exe "HELLO"
+// RUN: %{exec} %t.exe
 
 #include <cassert>
-#include <string>
 
-int main(int argc, char** argv) {
-  assert(argc == 2);
-
-  std::string arg = argv[1];
-  assert(arg == "HELLO");
+int main(int argc, char**) {
+  assert(argc == 1);
   return 0;
 }


        


More information about the libcxx-commits mailing list