This is an archive of the discontinued LLVM Phabricator instance.

[test] Fix Cross-DSO CFI Android sanitizer test for -rtlib=compiler-rt
AbandonedPublic

Authored by mgorny on Mar 19 2018, 1:00 PM.

Details

Reviewers
eugenis
Summary

Fix the CHECK-CFI-CROSS-DSO-ANDROID test to be more precise and match
specifically 'clang_rt.cfi' rather than any compiler-rt library. This
fixes the failure when the linker command-line contains
clang_rt.builtins library due to CLANG_DEFAULT_RTLIB=compiler-rt.

Diff Detail

Event Timeline

mgorny created this revision.Mar 19 2018, 1:00 PM
mgorny added inline comments.Mar 19 2018, 1:01 PM
test/Driver/sanitizer-ld.c
517

(an alternative would be to replace this 'NOT' clause with more specific library name — but I don't know which library could 'accidentally' appear here)

eugenis added inline comments.Mar 19 2018, 3:59 PM
test/Driver/sanitizer-ld.c
517

Yes, it would be better to check for -NOT: libclang_rt.cfi

mgorny updated this revision to Diff 139135.Mar 20 2018, 8:54 AM
mgorny edited the summary of this revision. (Show Details)
mgorny marked 2 inline comments as done.

@eugenis, updated.

mgorny abandoned this revision.Mar 29 2018, 12:20 AM