Skip to content

Commit 6525801

Browse files
committed
ci-macos-ios: a degradation is read by its sentence, not its domain
1 parent b6b5759 commit 6525801

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci-macos-ios.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,15 @@ jobs:
336336
TOML
337337
printf 'import std;\nint main() { std::print("x\\n"); }\n' > src/main.cpp
338338
"$MCPP_DEV" build --target aarch64-ios-sim > mixed.log 2>&1 || { echo "FAIL: import std without llvm.libcxx no longer builds"; cat mixed.log; exit 1; }
339-
grep -q 'target/cxx-runtime' mixed.log || { echo "FAIL: no degradation named the mixed libc++"; cat mixed.log; exit 1; }
339+
# A degradation renders its `what` text, not its domain, so the
340+
# sentence is what a log can be asked for.
341+
grep -q "links the SDK's libc++ under the toolchain payload's libc++ headers" mixed.log || { echo "FAIL: no degradation named the mixed libc++"; cat mixed.log; exit 1; }
340342
grep -q 'llvm.libcxx' mixed.log || { echo "FAIL: the degradation does not name llvm.libcxx"; cat mixed.log; exit 1; }
341343
printf '#include <cstdio>\n#include <string>\nint main() { std::string s = "1-2-3"; std::puts(s.c_str()); }\n' > src/main.cpp
342344
rm -rf target
343345
"$MCPP_DEV" build --target aarch64-ios-sim 2>&1 | tee plain.log
344-
grep -q 'target/compiler-runtime' plain.log || { echo "FAIL: no degradation named the missing compiler runtime"; exit 1; }
345-
grep -q 'target/cxx-runtime' plain.log && { echo "FAIL: a program without import std was reported as mixing libc++"; exit 1; }
346+
grep -q 'carries no compiler runtime for aarch64-ios-sim' plain.log || { echo "FAIL: no degradation named the missing compiler runtime"; exit 1; }
347+
grep -q "links the SDK's libc++ under" plain.log && { echo "FAIL: a program without import std was reported as mixing libc++"; exit 1; }
346348
ninja=$(ls target/aarch64-ios-sim/*/build.ninja | head -1)
347349
grep -q -- '-isystem[^ ]*iPhoneSimulator[^ ]*/usr/include/c++/v1' "$ninja" || { echo "FAIL: the plain program does not take the SDK's C++ headers"; grep -o -- '-isystem[^ ]*c++/v1' "$ninja" | sort -u; exit 1; }
348350
grep -q -- '-isystem[^ ]*xim-x-llvm[^ ]*/c++/v1' "$ninja" && { echo "FAIL: the plain program still takes the payload's C++ headers"; exit 1; }

0 commit comments

Comments
 (0)