diff --git a/projects/hip-tests/catch/unit/stream/hipStreamDestroy.cc b/projects/hip-tests/catch/unit/stream/hipStreamDestroy.cc index a2c0f287ec..40b98be674 100644 --- a/projects/hip-tests/catch/unit/stream/hipStreamDestroy.cc +++ b/projects/hip-tests/catch/unit/stream/hipStreamDestroy.cc @@ -83,8 +83,14 @@ TEST_CASE("Unit_hipStreamDestroy_WithPendingWork") { LaunchDelayKernel(std::chrono::milliseconds(500), stream); setToOne<<<1, numDataPoints, 0, stream>>>(deviceData, numDataPoints); - HIP_CHECK_ERROR(hipStreamQuery(stream), hipErrorNotReady); - HIP_CHECK_ERROR(hipStreamQuery(nullptr), hipErrorNotReady); + SECTION("Without stream query") { + fprintf(stderr, "Without stream query\n"); + } + SECTION("With stream query") { + fprintf(stderr, "With stream query\n"); + HIP_CHECK_ERROR(hipStreamQuery(stream), hipErrorNotReady); + HIP_CHECK_ERROR(hipStreamQuery(nullptr), hipErrorNotReady); + } HIP_CHECK(hipStreamDestroy(stream)); checkDataSet(deviceData); HIP_CHECK(hipFree(deviceData));