48#if !defined (__CYGWIN__) && defined (sigsetjmp)
49#define SETJMP(env) sigsetjmp (env, 1)
51#define SETJMP(env) setjmp (env)
54#define BEGIN_TEST_OVERRUN() \
55 (signal (SIGSEGV, sig_handler), \
75 bool isguardpage = (protbelow && 0 > tcase.
index_)
76 || (!protbelow && tcase.
index_ >= int (tcase.
size_));
93 "expected no read access, got read access");
96 "expected read access, got no read access");
102 "expected no write access, got write access");
105 "expected write access, got no write access");
114 const size_t BUF_SIZE = 10;
121#define TEST(size, index, prot) \
122 { size, index, prot, __FILE__, __LINE__ }
165 for (
size_t i = 0;
i <
sizeof (tcases) /
sizeof (tcases[0]); ++
i)
173int main (
int argc,
char *argv[])
175 return rw_test (argc, argv, __FILE__,
#define TEST(size, index, prot)
#define BEGIN_TEST_OVERRUN()
void run_test(const ForwardIterator &dummy, T *, Predicate *pred)
#define _RWSTD_STATIC_CAST(T, x)
_TEST_EXPORT void rw_free(void *)
_TEST_EXPORT void * rw_alloc(_RWSTD_SIZE_T, int=-1)
_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_assert(int, const char *, int, const char *,...)