Skip to content

Commit

Permalink
fixed warning int-in-bool-context in UT (#243)
Browse files Browse the repository at this point in the history
* fixed warning int-in-bool-context in UT

* changed UT check condition
  • Loading branch information
Bogumil-Sapinski-Mobica authored Sep 11, 2023
1 parent db2b227 commit c8c5a9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_openclhpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,8 +1200,7 @@ static cl_mem clCreateBuffer_testBufferConstructorContextIterator(
(void) num_calls;

TEST_ASSERT_EQUAL_PTR(make_context(0), context);
TEST_ASSERT_BITS(CL_MEM_COPY_HOST_PTR, flags, !CL_MEM_COPY_HOST_PTR);
TEST_ASSERT_BITS(CL_MEM_READ_ONLY, flags, CL_MEM_READ_ONLY);
TEST_ASSERT_EQUAL(flags, CL_MEM_READ_ONLY);
TEST_ASSERT_EQUAL(sizeof(int)*1024, size);
TEST_ASSERT_NULL(host_ptr);
if (errcode_ret)
Expand Down

0 comments on commit c8c5a9b

Please sign in to comment.