using namespace testing::ext;
using namespace std;
void AccesstokenidTest::SetUp() {}
void AccesstokenidTest::TearDown() {}
void AccesstokenidTest::SetUpTestCase() {}
void AccesstokenidTest::TearDownTestCase() {}
/**
* @tc.name: CheckInitToken
* @tc.desc: Test init value of tokenid and ftokenid
* @tc.desc: tokenid equals to the father(hdcd) and ftokenid equals to 0
* @tc.type: FUNC
*/
HWTEST_F(AccesstokenidTest, CheckInitToken, Function | MediumTest | Level1)
{
printf("----------------------------trace point test-----------------------------------------\n");
int fd = open("/dev/demo_device", O_RDWR);
if (fd < 0) {
printf("open demo_device failed\n");
return;
}
close(fd);
}
```
```shell
# shell终端运行结果(不重要)
# ./accesstokenid_test
Running main() from ../../third_party/googletest/googletest/src/gtest_main.cc
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from AccesstokenidTest
[ RUN ] AccesstokenidTest.CheckInitToken
----------------------------trace point test-----------------------------------------
[ OK ] AccesstokenidTest.CheckInitToken (0 ms)
[----------] 1 test from AccesstokenidTest (0 ms total)
[----------] Global test environment tear-down
Gtest xml output finished
[==========] 1 test from 1 test case ran. (0 ms total)
[ PASSED ] 1 test.