diff options
author | David Gibson <dgibson@sneetch.ozlabs.ibm.com> | 2005-12-01 16:24:45 +1100 |
---|---|---|
committer | David Gibson <dgibson@sneetch.ozlabs.ibm.com> | 2005-12-01 16:24:45 +1100 |
commit | 38fc9ccc7e01ab89697d8fc11613d2e3f39ef9e0 (patch) | |
tree | 464124886db3257c3267f13c8ac5d5fd3293ebfe /tests/testutils.c | |
parent | 4014ddf7c6e2c643d65d6399aebae4fc4ecf24d7 (diff) | |
download | libhugetlbfs-38fc9ccc7e01ab89697d8fc11613d2e3f39ef9e0.tar.gz |
Remove default SEGV handler from testcases, to make SEGVs more obviously
worse than other FAILs. Add testcase for gethugepagesize() operating
on a /proc/meminfo with no hugepage info (e.g. on kernel without hugepage
support).
Diffstat (limited to 'tests/testutils.c')
-rw-r--r-- | tests/testutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testutils.c b/tests/testutils.c index 71d6ecb..e83595e 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -18,13 +18,16 @@ void __attribute__((weak)) cleanup(void) { } +#if 0 static void segv_handler(int signum, siginfo_t *si, void *uc) { FAIL("Segmentation fault"); } +#endif void test_init(int argc, char *argv[]) { +#if 0 int err; struct sigaction sa = { .sa_sigaction = segv_handler, @@ -36,6 +39,7 @@ void test_init(int argc, char *argv[]) err = sigaction(SIGSEGV, &sa, NULL); if (err) FAIL("Can't install SEGV handler"); +#endif if (getenv("QUIET_TEST")) verbose_test = 0; |