Skip to content

Commit 181763d

Browse files
committed
[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
1 parent cf0e32d commit 181763d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@
1414
// - %{exec}
1515

1616
// RUN: %{cxx} %s %{flags} %{compile_flags} %{link_flags} -o %t.exe
17-
// RUN: %{exec} %t.exe "HELLO"
17+
// RUN: %{exec} %t.exe
1818

1919
#include <cassert>
20-
#include <string>
2120

22-
int main(int argc, char** argv) {
23-
assert(argc == 2);
24-
25-
std::string arg = argv[1];
26-
assert(arg == "HELLO");
21+
int main(int argc, char**) {
22+
assert(argc == 1);
2723
return 0;
2824
}

0 commit comments

Comments
 (0)