Home
last modified time | relevance | path

Searched refs:posix_strerror_r (Results 1 – 2 of 2) sorted by relevance

/bionic/tests/
Dstring_posix_strerror_r_test.cpp23 int posix_strerror_r(int errnum, char* buf, size_t buflen);
25 TEST(string, posix_strerror_r) { in TEST() argument
29 ASSERT_EQ(0, posix_strerror_r(0, buf, sizeof(buf))); in TEST()
35 ASSERT_EQ(0, posix_strerror_r(1, buf, sizeof(buf))); in TEST()
40 ASSERT_EQ(0, posix_strerror_r(-1, buf, sizeof(buf))); in TEST()
46 ASSERT_EQ(0, posix_strerror_r(1234, buf, sizeof(buf))); in TEST()
54 ASSERT_EQ(EINVAL, posix_strerror_r(-1, buf, sizeof(buf))); in TEST()
55 ASSERT_EQ(EINVAL, posix_strerror_r(1234, buf, sizeof(buf))); in TEST()
61 ASSERT_EQ(ERANGE, posix_strerror_r(EPERM, buf, 2)); in TEST()
Dstring_posix_strerror_r_wrapper.cpp27 int posix_strerror_r(int errnum, char* buf, size_t buflen) { in posix_strerror_r() function