Commit a75c4be6 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Commit Bot

[wasm] Failing tests in module-decoder-unittests print out the error

Change-Id: I959409fb1a4f2d427c252f3904b197b71e335825
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2241520Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68323}
parent cfd27c55
......@@ -120,7 +120,7 @@ struct CheckLEB1 : std::integral_constant<size_t, num> {
#define EXPECT_VERIFIES(data) \
do { \
ModuleResult result = DecodeModule(data, data + sizeof(data)); \
EXPECT_TRUE(result.ok()); \
EXPECT_OK(result); \
} while (false)
#define EXPECT_FAILURE_LEN(data, length) \
......@@ -146,10 +146,12 @@ struct CheckLEB1 : std::integral_constant<size_t, num> {
} \
} while (false)
#define EXPECT_OK(result) \
do { \
EXPECT_TRUE(result.ok()); \
if (!result.ok()) return; \
#define EXPECT_OK(result) \
do { \
if (!result.ok()) { \
GTEST_NONFATAL_FAILURE_(result.error().message().c_str()); \
return; \
} \
} while (false)
#define EXPECT_NOT_OK(result, msg) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment