blob: e3beea6e546255549972c7cedcdec7811a45a868 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/sys/fuzzing/common/options.h"
#include "src/sys/fuzzing/realmfuzzer/engine/process-proxy-test.h"
#include "src/sys/fuzzing/realmfuzzer/engine/process-proxy.h"
namespace fuzzing {
namespace {
// Unit tests.
// Log detection is disabled for these tests, so they may emit fatal logs without failing.
using ProcessProxyFatalTest = ProcessProxyTest;
TEST_F(ProcessProxyFatalTest, Crash) {
TestTarget target(executor());
auto process_proxy = CreateAndConnectProxy(target.Launch());
FUZZING_EXPECT_OK(process_proxy->GetResult(), FuzzResult::CRASH);
} // namespace
} // namespace fuzzing