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

Unified Diff: test/cctest/wasm/test-wasm-trap-position.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Restore signal mask at the right place Created 3 years, 10 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
Index: test/cctest/wasm/test-wasm-trap-position.cc
diff --git a/test/cctest/wasm/test-wasm-trap-position.cc b/test/cctest/wasm/test-wasm-trap-position.cc
index 0418d46bab34e6718431046415fb3f6ea52e799c..ab73edd66470ceee1cd7f677759e290b83c5c9f0 100644
--- a/test/cctest/wasm/test-wasm-trap-position.cc
+++ b/test/cctest/wasm/test-wasm-trap-position.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "src/trap-handler/trap-handler.h"
#include "src/wasm/wasm-macro-gen.h"
#include "test/cctest/cctest.h"
@@ -97,6 +98,11 @@ TEST(Unreachable) {
// Trigger a trap for loading from out-of-bounds.
TEST(IllegalLoad) {
+ if (trap_handler::ShouldEnableTrapHandler()) {
+ // cctests don't register the handler data, so this test won't work
ahaas 2017/02/20 09:27:24 Runtime calls don't work in cctests, so I guess yo
Eric Holk 2017/02/23 02:16:57 Acknowledged.
+ // TODO(eholk): find out why and fix it.
Mark Seaborn 2017/02/17 21:41:12 Does this need to get fixed?
Eric Holk 2017/02/23 02:16:57 This test just does the basic out of bounds memory
+ return;
+ }
WasmRunner<void> r(kExecuteCompiled);
TestSignatures sigs;
// Set the execution context, such that a runtime error can be thrown.

Powered by Google App Engine
This is Rietveld 408576698