Skip to content

Commit 6c6309e

Browse files
committed
Make assert more verbose in test.
Signed-off-by: James Brodman <[email protected]>
1 parent 78bd876 commit 6c6309e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test/usm/allocator_shared.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main() {
3434

3535
// Test construction
3636
auto ptr2 = std::allocate_shared<int>(alloc, 42);
37-
assert(*ptr2 == 42);
37+
assert((*ptr2 == 42) && "Host construct passed.");
3838
}
3939

4040
if (dev.get_info<info::device::usm_shared_allocations>()) {
@@ -43,7 +43,7 @@ int main() {
4343

4444
// Test construction
4545
auto ptr2 = std::allocate_shared<int>(alloc, 42);
46-
assert(*ptr2 == 42);
46+
assert((*ptr2 == 42) && "Shared construct passed.");
4747
}
4848

4949
if (dev.get_info<info::device::usm_device_allocations>()) {

0 commit comments

Comments
 (0)