[libcxx-commits] [PATCH] D116117: [libcxx] [test] Extend test for bash for executor-has-no-bash
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 21 14:44:13 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd67b25e7f6d9: [libcxx] [test] Extend test for bash for executor-has-no-bash (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116117/new/
https://reviews.llvm.org/D116117
Files:
libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cerr.sh.cpp
libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.sh.cpp
libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cout.sh.cpp
libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.sh.cpp
libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp
libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcout.sh.cpp
libcxx/utils/libcxx/test/features.py
Index: libcxx/utils/libcxx/test/features.py
===================================================================
--- libcxx/utils/libcxx/test/features.py
+++ libcxx/utils/libcxx/test/features.py
@@ -75,8 +75,14 @@
# Whether Bash can run on the executor.
# This is not always the case, for example when running on embedded systems.
+ #
+ # For the corner case of bash existing, but it being missing in the path
+ # set in %{exec} as "--env PATH=one-single-dir", the executor does find
+ # and executes bash, but bash then can't find any other common shell
+ # utilities. Test executing "bash -c 'bash --version'" to see if bash
+ # manages to find binaries to execute.
Feature(name='executor-has-no-bash',
- when=lambda cfg: runScriptExitCode(cfg, ['%{exec} bash --version']) != 0),
+ when=lambda cfg: runScriptExitCode(cfg, ['%{exec} bash -c \'bash --version\'']) != 0),
Feature(name='apple-clang', when=_isAppleClang),
Feature(name=lambda cfg: 'apple-clang-{__clang_major__}'.format(**compilerMacros(cfg)), when=_isAppleClang),
Index: libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcout.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcout.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcout.sh.cpp
@@ -11,7 +11,6 @@
// istream wcout;
// XFAIL: libcpp-has-no-wide-characters
-// XFAIL: LIBCXX-WINDOWS-FIXME
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stdout.sh
Index: libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp
@@ -11,7 +11,6 @@
// istream wclog;
// XFAIL: libcpp-has-no-wide-characters
-// XFAIL: LIBCXX-WINDOWS-FIXME
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stderr.sh
Index: libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.sh.cpp
@@ -11,7 +11,6 @@
// istream wcerr;
// XFAIL: libcpp-has-no-wide-characters
-// XFAIL: LIBCXX-WINDOWS-FIXME
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stderr.sh
Index: libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cout.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cout.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cout.sh.cpp
@@ -10,8 +10,6 @@
// istream cout;
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stdout.sh
// RUN: %{build}
Index: libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.sh.cpp
@@ -10,8 +10,6 @@
// istream clog;
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stderr.sh
// RUN: %{build}
Index: libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cerr.sh.cpp
===================================================================
--- libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cerr.sh.cpp
+++ libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cerr.sh.cpp
@@ -10,8 +10,6 @@
// istream cerr;
-// XFAIL: LIBCXX-WINDOWS-FIXME
-
// UNSUPPORTED: executor-has-no-bash
// FILE_DEPENDENCIES: ../check-stderr.sh
// RUN: %{build}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116117.395753.patch
Type: text/x-patch
Size: 4240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211221/694a54c4/attachment.bin>
More information about the libcxx-commits
mailing list