[compiler-rt] r353377 - [sanitizer] Fix Android tests
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 6 23:40:33 PST 2019
Author: vitalybuka
Date: Wed Feb 6 23:40:33 2019
New Revision: 353377
URL: http://llvm.org/viewvc/llvm-project?rev=353377&view=rev
Log:
[sanitizer] Fix Android tests
On Android some fields can be null
Modified:
compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc
Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc?rev=353377&r1=353376&r2=353377&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Posix/getpw_getgr.cc Wed Feb 6 23:40:33 2019
@@ -14,6 +14,8 @@ std::string any_group;
const int N = 123456;
void Check(const char *str) {
+ if (!str)
+ return;
assert(strlen(str) != N);
}
More information about the llvm-commits
mailing list