diff options
Diffstat (limited to 'unittests/Host/HostInfoTest.cpp')
| -rw-r--r-- | unittests/Host/HostInfoTest.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/unittests/Host/HostInfoTest.cpp b/unittests/Host/HostInfoTest.cpp index 3870673d0f47..d2d1fdc256a9 100644 --- a/unittests/Host/HostInfoTest.cpp +++ b/unittests/Host/HostInfoTest.cpp @@ -8,20 +8,27 @@ //===----------------------------------------------------------------------===// #include "lldb/Host/HostInfo.h" -#include "lldb/lldb-defines.h" #include "TestingSupport/TestUtilities.h" +#include "lldb/Host/FileSystem.h" +#include "lldb/lldb-defines.h" #include "gtest/gtest.h" using namespace lldb_private; using namespace llvm; namespace { -class HostInfoTest: public ::testing::Test { - public: - void SetUp() override { HostInfo::Initialize(); } - void TearDown() override { HostInfo::Terminate(); } +class HostInfoTest : public ::testing::Test { +public: + void SetUp() override { + FileSystem::Initialize(); + HostInfo::Initialize(); + } + void TearDown() override { + HostInfo::Terminate(); + FileSystem::Terminate(); + } }; -} +} // namespace TEST_F(HostInfoTest, GetAugmentedArchSpec) { // Fully specified triple should not be changed. @@ -43,4 +50,4 @@ TEST_F(HostInfoTest, GetAugmentedArchSpec) { // Test LLDB_ARCH_DEFAULT EXPECT_EQ(HostInfo::GetAugmentedArchSpec(LLDB_ARCH_DEFAULT).GetTriple(), HostInfo::GetArchitecture(HostInfo::eArchKindDefault).GetTriple()); -}
\ No newline at end of file +} |
