[libcxx-commits] [PATCH] D113483: [libc++] Simplify selftest to avoid passing arguments to it

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rG181763d4756a: [libc++] Simplify selftest to avoid passing arguments to it (authored by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113483/new/

https://reviews.llvm.org/D113483

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


Index: libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp
===================================================================
--- libcxx/test/libcxx/selftest/sh.cpp/substitutions.sh.cpp
+++ 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;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113483.385879.patch
Type: text/x-patch
Size: 639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211109/6cd876a3/attachment-0001.bin>


More information about the libcxx-commits mailing list