diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-13 12:24:10 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-13 12:24:10 +0000 |
commit | 788527d9cdf69dd031f294029106e6811e93378f (patch) | |
tree | b7abb891ba686b36dad3e3f2a2b2a71f7c6fc48a /compiler-rt | |
parent | 487f387b19dce3e3683e35089df92ef5c22589e4 (diff) | |
download | bcm5719-llvm-788527d9cdf69dd031f294029106e6811e93378f.tar.gz bcm5719-llvm-788527d9cdf69dd031f294029106e6811e93378f.zip |
Remove a check from strerror_r test.
It's not always true: on Android, strerror_r with invalid errno
prints "Unknown error ..." to the buffer and returns 0.
This test now only checks that strerror_r does not crash.
llvm-svn: 201321
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc index 0df009b83f9..d91ad3320af 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/strerror_r_test.cc @@ -4,10 +4,11 @@ #include <assert.h> #include <string.h> +#include <stdio.h> int main() { char buf[1024]; char *res = (char *)strerror_r(300, buf, sizeof(buf)); - assert(res != 0); + printf("%p\n", res); return 0; } |