Skip to content

Commit 5d51865

Browse files
committed
Fixed test accordingly to sycl2020
1 parent 08ffa1c commit 5d51865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/test/basic_tests/event_async_exception.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ int main() {
2828
queue q(asyncHandler);
2929

3030
try {
31-
// Submit a CG with no kernel or memory operation to trigger an async error
31+
// Submit a CG with no kernel or memory operation no trigger an async error
3232
event e = q.submit([&](handler &cgh) {});
3333

3434
e.wait_and_throw();
35-
return 1;
36-
} catch (runtime_error e) {
3735
return 0;
36+
} catch (runtime_error e) {
37+
return 1;
3838
}
3939
}

0 commit comments

Comments
 (0)