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
This commit is contained in:
Evgeniy Stepanov 2014-02-13 12:24:10 +00:00
parent 487f387b19
commit 788527d9cd
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}