Skip to content

Commit 7f95dcb

Browse files
committed
Rename tests
1 parent 456a985 commit 7f95dcb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/utils/utils_linux.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ TEST_F(test, utils_translate_mem_visibility_flag) {
1313
EXPECT_EQ(ret, UMF_RESULT_ERROR_INVALID_ARGUMENT);
1414
}
1515

16-
TEST_F(test, utils_shm_open) {
16+
TEST_F(test, utils_shm_open_invalid_args) {
1717
auto ret = utils_shm_open(NULL);
18-
ASSERT_EQ(ret, -1);
18+
EXPECT_EQ(ret, -1);
1919

2020
ret = utils_shm_open("invalid_path");
21-
ASSERT_EQ(ret, -1);
21+
EXPECT_EQ(ret, -1);
2222
}
2323

24-
TEST_F(test, utils_get_file_size) {
24+
TEST_F(test, utils_get_file_size_invalid_args) {
2525
size_t size;
2626
auto ret = utils_get_file_size(-1, &size);
27-
ASSERT_EQ(ret, -1);
27+
EXPECT_EQ(ret, -1);
2828

2929
int fd = utils_create_anonymous_fd();
3030
ret = utils_get_file_size(fd, &size);
31-
ASSERT_EQ(ret, 0);
32-
ASSERT_EQ(size, 0);
31+
EXPECT_EQ(ret, 0);
32+
EXPECT_EQ(size, 0);
3333
}
3434

35-
TEST_F(test, utils_set_file_size) {
35+
TEST_F(test, utils_set_file_size_invalid_args) {
3636
auto ret = utils_set_file_size(-1, 256);
37-
ASSERT_EQ(ret, -1);
37+
EXPECT_EQ(ret, -1);
3838
}
3939

40-
TEST_F(test, utils_shm_create) {
40+
TEST_F(test, utils_shm_create_invalid_args) {
4141
auto ret = utils_shm_create(NULL, 0);
42-
ASSERT_EQ(ret, -1);
42+
EXPECT_EQ(ret, -1);
4343

4444
ret = utils_shm_create("", 256);
45-
ASSERT_EQ(ret, -1);
45+
EXPECT_EQ(ret, -1);
4646

4747
ret = utils_shm_create("/abc", 256);
48-
ASSERT_GE(ret, 0);
48+
EXPECT_GE(ret, 0);
4949

5050
ret = utils_shm_create("/abc", -1);
51-
ASSERT_EQ(ret, -1);
51+
EXPECT_EQ(ret, -1);
5252
}

0 commit comments

Comments
 (0)