[compiler-rt] r201321 - Remove a check from strerror_r test.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu Feb 13 04:24:10 PST 2014


Author: eugenis
Date: Thu Feb 13 06:24:10 2014
New Revision: 201321

URL: http://llvm.org/viewvc/llvm-project?rev=201321&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/TestCases/strerror_r_test.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/strerror_r_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/strerror_r_test.cc?rev=201321&r1=201320&r2=201321&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/strerror_r_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/strerror_r_test.cc Thu Feb 13 06:24:10 2014
@@ -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;
 }





More information about the llvm-commits mailing list