Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / unittests / Host / FileActionTest.cpp
blobb208169aac20e60f75a1a3e270a55dee6e04e32d
1 //===-- FileActionTest.cpp ------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Host/FileAction.h"
10 #include "gtest/gtest.h"
12 using namespace lldb_private;
14 TEST(FileActionTest, Open) {
15 FileAction Action;
16 Action.Open(47, FileSpec("/tmp"), /*read*/ true, /*write*/ false);
17 EXPECT_EQ(Action.GetAction(), FileAction::eFileActionOpen);
18 EXPECT_EQ(Action.GetFileSpec(), FileSpec("/tmp"));