• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <gtest/gtest.h>
2 
3 using namespace testing::ext;
4 
5 class LinuxPivotrootTest : public testing::Test {
SetUp()6     void SetUp() override {}
TearDown()7     void TearDown() override {}
8 };
9 
10 extern "C" int pivot_root(const char*, const char*);
11 
12 /**
13  * @tc.name: pivot_root_001
14  * @tc.desc: Returns an exception when verifying that the parameter path is empty.
15  * @tc.type: FUNC
16  * */
17 HWTEST_F(LinuxPivotrootTest, pivot_root_001, TestSize.Level1)
18 {
19     int result = pivot_root(nullptr, nullptr);
20     EXPECT_EQ(-1, result);
21 }