Skip to content

Commit

Permalink
Move FUZZ_ASSERT to fuzz_runner.h.
Browse files Browse the repository at this point in the history
Signed-off-by: Harvey Tuch <htuch@google.com>
  • Loading branch information
htuch committed Oct 18, 2019
1 parent e0c5837 commit 05020bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions test/common/buffer/buffer_fuzz.cc
Expand Up @@ -13,10 +13,6 @@
#include "absl/strings/match.h"
#include "gtest/gtest.h"

// Strong assertion that applies across all compilation modes and doesn't rely
// on gtest, which only provides soft fails that don't trip oss-fuzz failures.
#define FUZZ_ASSERT(x) RELEASE_ASSERT(x, "")

namespace Envoy {

namespace {
Expand Down
4 changes: 0 additions & 4 deletions test/common/json/json_fuzz_test.cc
Expand Up @@ -5,10 +5,6 @@

#include "test/fuzz/fuzz_runner.h"

// Strong assertion that applies across all compilation modes and doesn't rely
// on gtest, which only provides soft fails that don't trip oss-fuzz failures.
#define FUZZ_ASSERT(x) RELEASE_ASSERT(x, "")

namespace Envoy {
namespace Fuzz {

Expand Down
4 changes: 4 additions & 0 deletions test/fuzz/fuzz_runner.h
Expand Up @@ -8,6 +8,10 @@
#include "libprotobuf_mutator/src/libfuzzer/libfuzzer_macro.h"
#include "spdlog/spdlog.h"

// Strong assertion that applies across all compilation modes and doesn't rely
// on gtest, which only provides soft fails that don't trip oss-fuzz failures.
#define FUZZ_ASSERT(x) RELEASE_ASSERT(x, "")

namespace Envoy {
namespace Fuzz {

Expand Down

0 comments on commit 05020bf

Please sign in to comment.