diff options
author | alpine-mips-patches <info@mobile-stream.com> | 2018-12-06 06:33:07 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-01-02 15:00:53 +0000 |
commit | 50154f7a8b5dce6010299225e398d6c5cf6ac1b5 (patch) | |
tree | b7d80a1e0e8fc1f5e82dc65dc81853a7f1d82c05 /main/llvm5/fix-too-strict-gtest-banner-check.patch | |
parent | ce495b28c15f119132198baef1a280db5c8cb64e (diff) | |
download | aports-50154f7a8b5dce6010299225e398d6c5cf6ac1b5.tar.bz2 aports-50154f7a8b5dce6010299225e398d6c5cf6ac1b5.tar.xz |
main/llvm5: fix too strict gtest banner filter
LLVM googletest driver does not correctly filter out the banner
printed by the gtest tool and interprets it as another unittest.
This makes community/lld test suite fail:
UNRESOLVED: lld-Unit :: MachOTests/./lldMachOTests/Running main() from /home/buildozer/aports/main/gtest/src/googletest-release-1.8.1/googletest/src/gtest_main.cc (1229 of 1231)
******************** TEST 'lld-Unit :: MachOTests/./lldMachOTests/Running main() from /home/buildozer/aports/main/gtest/src/googletest-release-1.8.1/googletest/src/gtest_main.cc' FAILED ********************
Unable to find '[ PASSED ] 1 test.' in gtest output:
Running main() from /home/buildozer/aports/main/gtest/src/googletest-release-1.8.1/googletest/src/gtest_main.cc
Note: Google Test filter = Running main() from /home/buildozer/aports/main/gtest/src/googletest-release-1.8.1/googletest/src/gtest_main.cc
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (0 ms total)
[ PASSED ] 0 tests.
Diffstat (limited to 'main/llvm5/fix-too-strict-gtest-banner-check.patch')
-rw-r--r-- | main/llvm5/fix-too-strict-gtest-banner-check.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/llvm5/fix-too-strict-gtest-banner-check.patch b/main/llvm5/fix-too-strict-gtest-banner-check.patch new file mode 100644 index 0000000000..412888e420 --- /dev/null +++ b/main/llvm5/fix-too-strict-gtest-banner-check.patch @@ -0,0 +1,11 @@ +--- a/utils/lit/lit/formats/googletest.py ++++ b/utils/lit/lit/formats/googletest.py +@@ -42,7 +42,7 @@ + for ln in output.splitlines(False): # Don't keep newlines. + ln = lit.util.to_string(ln) + +- if 'Running main() from gtest_main.cc' in ln: ++ if ln.startswith('Running main() from '): + # Upstream googletest prints this to stdout prior to running + # tests. LLVM removed that print statement in r61540, but we + # handle it here in case upstream googletest is being used. |