49 "EILSEQ not positive",
51 "EILSEQ not distinct from EDOM",
57 "ERANGE not positive",
59 "ERANGE not distinct from EDOM",
61 "ERANGE not distinct from EILSEQ",
86 rw_info (0, 0, 0,
"exercising the contents of the <cerrno> header");
98 &&
'n' == errno_type [1]
99 &&
't' == errno_type [2]
100 &&
'\0' == errno_type [3],
102 "the type of errno is int, got %s", errno_type);
106 "errno == 0 at program startup, got %d", errno_at_startup);
116 "errno == %d (%{#*m}, got %d (%{#m}) "
117 "(errno not a modifiable lvalue?)",
127 "errno == %d (%{#*m}, got %d (%{#m}) "
128 "(errno not a modifiable lvalue?)",
138 "errno == %d (%{#*m}, got %d (%{#m}) "
139 "(errno not a modifiable lvalue?)",
147int main (
int argc,
char *argv[])
149 errno_at_startup = errno;
151 return rw_test (argc, argv, __FILE__,
const char *const errors[]
void set_errno_value(T, int)
void run_test(const ForwardIterator &dummy, T *, Predicate *pred)
const char * type_name() const
_TEST_EXPORT int rw_test(int argc, char *argv[], const char *filename, const char *clause, const char *comment, int(*testfun)(int, char **), const char *optspec,...)
_TEST_EXPORT int rw_info(int, const char *, int, const char *,...)
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)