@@ -32,7 +32,7 @@ class PlatformTest : public ::testing::Test {
32
32
// Initialize the logged number of platforms before the following assertion.
33
33
RecordProperty (platform_count_key, platform_count);
34
34
35
- ASSERT_EQ (PI_CALL_NOCHECK (piPlatformsGet)(0 , 0 , &platform_count),
35
+ ASSERT_EQ (( PI_CALL_NOCHECK (piPlatformsGet)(0 , nullptr , &platform_count) ),
36
36
PI_SUCCESS);
37
37
38
38
// Overwrite previous log value with queried number of platforms.
@@ -49,8 +49,8 @@ class PlatformTest : public ::testing::Test {
49
49
50
50
_platforms.resize (platform_count, nullptr );
51
51
52
- ASSERT_EQ (PI_CALL_NOCHECK (piPlatformsGet)(_platforms.size (),
53
- _platforms.data (), nullptr ),
52
+ ASSERT_EQ (( PI_CALL_NOCHECK (piPlatformsGet)(_platforms.size (),
53
+ _platforms.data (), nullptr ) ),
54
54
PI_SUCCESS);
55
55
}
56
56
};
@@ -63,14 +63,14 @@ TEST_F(PlatformTest, piPlatformsGet) {
63
63
TEST_F (PlatformTest, piPlatformGetInfo) {
64
64
auto get_info_test = [](pi_platform platform, _pi_platform_info info) {
65
65
size_t reported_string_length = 0 ;
66
- EXPECT_EQ (PI_CALL_NOCHECK (piPlatformGetInfo)(platform, info, 0u , nullptr ,
67
- &reported_string_length),
66
+ EXPECT_EQ (( PI_CALL_NOCHECK (piPlatformGetInfo)(platform, info, 0u , nullptr ,
67
+ &reported_string_length) ),
68
68
PI_SUCCESS);
69
69
70
70
// Create a larger result string to catch overwrites.
71
71
std::vector<char > param_value (reported_string_length * 2u , ' \0 ' );
72
- EXPECT_EQ (PI_CALL_NOCHECK (piPlatformGetInfo)(
73
- platform, info, param_value.size (), param_value.data (), 0u ),
72
+ EXPECT_EQ (( PI_CALL_NOCHECK (piPlatformGetInfo)(
73
+ platform, info, param_value.size (), param_value.data (), nullptr ) ),
74
74
PI_SUCCESS)
75
75
<< " piPlatformGetInfo for " << RT::platformInfoToString (info)
76
76
<< " failed.\n " ;
0 commit comments