Skip to content

Commit 2398f3f

Browse files
committed
Delete platform specific testg
1 parent f65db27 commit 2398f3f

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎tests/unit/string_h.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#undef _GNU_SOURCE
22
#define _GNU_SOURCE
33
#include <assert.h>
4-
#include <errno.h>
54
#include <string.h>
65
#include <strings.h>
76

@@ -154,17 +153,6 @@ static void test_strcasecmp(void) {
154153
assert(strcasecmp(p, q) == 0);
155154
}
156155

157-
static void test_strerror_r(void) {
158-
char buf[64];
159-
#if defined(__linux__)
160-
const char *msg = strerror_r(ENOENT, buf, sizeof buf);
161-
#else
162-
assert(strerror_r(ENOENT, buf, sizeof buf) == 0);
163-
const char *msg = buf;
164-
#endif
165-
assert(strcmp(msg, "No such file or directory") == 0);
166-
}
167-
168156
int main(void) {
169157
test_memcpy();
170158
test_memset();
@@ -181,6 +169,5 @@ int main(void) {
181169
test_strstr();
182170
test_strpbrk();
183171
test_strcasecmp();
184-
test_strerror_r();
185172
return 0;
186173
}

0 commit comments

Comments
 (0)