summaryrefslogtreecommitdiff
path: root/src/tools/spectest-interp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/spectest-interp.cc')
-rw-r--r--src/tools/spectest-interp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/spectest-interp.cc b/src/tools/spectest-interp.cc
index 130edd66..9e7e32e3 100644
--- a/src/tools/spectest-interp.cc
+++ b/src/tools/spectest-interp.cc
@@ -1406,8 +1406,9 @@ ActionResult CommandRunner::RunAction(int line_number,
switch (action->type) {
case ActionType::Invoke: {
auto* func = cast<interp::Func>(extern_.get());
- func->Call(store_, action->args, result.values, &result.trap,
- s_trace_stream);
+ auto ok = func->Call(store_, action->args, result.values, &result.trap,
+ s_trace_stream);
+ assert((ok == Result::Ok) == (!result.trap));
result.types = func->type().results;
if (verbose == RunVerbosity::Verbose) {
WriteCall(s_stdout_stream.get(), action->field_name, func->type(),