Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: tests/exception_test/exception_crash_test.c

Issue 14876015: Add wrapper library for the nacl_irt_exception_handling IRT interface (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Cleanup + remove minidump_generator.gyp for now because of pthread.h problem in Gyp build Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/untrusted/nacl/nacl_exception.c ('k') | tests/exception_test/exception_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/exception_test/exception_crash_test.c
diff --git a/tests/exception_test/exception_crash_test.c b/tests/exception_test/exception_crash_test.c
index bef47a0dd6bb03ddc198559c508f1b6b78641d5a..568dc4044305a82213982c039c8b020e0332f96b 100644
--- a/tests/exception_test/exception_crash_test.c
+++ b/tests/exception_test/exception_crash_test.c
@@ -15,8 +15,6 @@
#include "native_client/src/untrusted/nacl/syscall_bindings_trampoline.h"
-typedef void (*handler_func_t)(struct NaClExceptionContext *context);
-
char stack_in_rwdata[0x1000];
/*
@@ -33,7 +31,7 @@ void test_bad_handler(void) {
* the code segment range and is well-aligned. The bottom 64k of
* address space is never mapped.
*/
- handler_func_t handler = (handler_func_t) 0x1000;
+ nacl_exception_handler_t handler = (nacl_exception_handler_t) 0x1000;
int rc = NACL_SYSCALL(exception_handler)(handler, NULL);
assert(rc == 0);
fprintf(stderr, "** intended_exit_status=untrusted_segfault\n");
« no previous file with comments | « src/untrusted/nacl/nacl_exception.c ('k') | tests/exception_test/exception_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698