blob: a7ff4f1384295e2b0fdd12147aef949320750c0e [file] [log] [blame]
// Copyright 2018 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 <memory>
#include <utility>
#include <zircon/assert.h>
#include <zxtest/base/test.h>
namespace zxtest {
void Test::Run() {
ZX_DEBUG_ASSERT_MSG(driver_ != nullptr, "Runner must set the test driver.");
// Only execute the test body if there were no set up errors.
if (driver_->Continue()) {
// Even if errors occurred, we might want to clean any resources.
} // namespace zxtest