forked from OSchip/llvm-project
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:
parent
487f387b19
commit
788527d9cd
|
@ -4,10 +4,11 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
char *res = (char *)strerror_r(300, buf, sizeof(buf));
|
char *res = (char *)strerror_r(300, buf, sizeof(buf));
|
||||||
assert(res != 0);
|
printf("%p\n", res);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue