Skip to content

Commit 915c4ac

Browse files
committed
More test
1 parent cd5a0ad commit 915c4ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

offload/unittests/OffloadAPI/program/olIsValidBinary.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@ TEST_P(olIsValidBinaryTest, Success) {
2323
ASSERT_SUCCESS(olIsValidBinary(Device, DeviceBin->getBufferStart(),
2424
DeviceBin->getBufferSize(), &IsValid));
2525
ASSERT_TRUE(IsValid);
26+
27+
ASSERT_SUCCESS(
28+
olIsValidBinary(Device, DeviceBin->getBufferStart(), 0, &IsValid));
29+
ASSERT_FALSE(IsValid);
30+
31+
ASSERT_ERROR(
32+
OL_ERRC_INVALID_NULL_POINTER,
33+
olIsValidBinary(Device, nullptr, DeviceBin->getBufferSize(), &IsValid));
34+
ASSERT_FALSE(IsValid);
2635
}

0 commit comments

Comments
 (0)