blob: ce77857b51f1822f6346002d611fc8a8bbe7ad2e [file] [log] [blame]
// Copyright 2022 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 <gtest/gtest.h>
TEST(TrivialTest, Control) { EXPECT_TRUE(true); }
TEST(TrivialTest, ExitKilledBySignal) {
ASSERT_DEATH([]() { __builtin_trap(); }(), "");
}
TEST(TrivialTest, ExitWithCode) {
EXPECT_EXIT([]() { exit(5); }(), testing::ExitedWithCode(5), "");
}