Skip to content

Commit

Permalink
Remove api tracing testing of zeInit after v1.13.5 Loader
Browse files Browse the repository at this point in the history
Related-To: VLCLJ-1968

- Removal of api tracing tests which call zeInit, then call zeInit with
an api tracing callback. After v1.13.5 Loader, this functionality will
no longer work.

Signed-off-by: Neil R Spruit <[email protected]>
  • Loading branch information
nrspruit committed Aug 8, 2023
1 parent 4a01221 commit 2d8e8e1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
12 changes: 0 additions & 12 deletions conformance_tests/tools/tracing/src/test_api_tracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,18 +381,6 @@ static void ready_tracer(zet_tracer_exp_handle_t tracer,
lzt::enable_tracer(tracer);
}

TEST_F(
TracingPrologueEpilogueTests,
GivenEnabledTracerWithzeInitCallbacksWhenCallingzeInitThenUserDataIsSetAndResultUnchanged) {
prologues.Global.pfnInitCb = lzt::prologue_callback;
epilogues.Global.pfnInitCb = lzt::epilogue_callback;

ze_result_t initial_result = zeInit(0);
ready_tracer(tracer_handle, prologues, epilogues);

ASSERT_EQ(initial_result, zeInit(0));
}

TEST_F(
TracingPrologueEpilogueTests,
GivenEnabledTracerWithzeDeviceGetCallbacksWhenCallingzeDeviceGetThenUserDataIsSetAndResultUnchanged) {
Expand Down
12 changes: 0 additions & 12 deletions layer_tests/tracing/src/test_api_ltracing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,6 @@ static void ready_ltracer(zel_tracer_handle_t tracer, ze_callbacks_t prologues,
lzt::enable_ltracer(tracer);
}

TEST_F(
LTracingPrologueEpilogueTests,
GivenEnabledTracerWithzeInitCallbacksWhenCallingzeInitThenUserDataIsSetAndResultUnchanged) {
prologues.Global.pfnInitCb = lzt::lprologue_callback;
epilogues.Global.pfnInitCb = lzt::lepilogue_callback;

ze_result_t initial_result = zeInit(0);
ready_ltracer(tracer_handle, prologues, epilogues);

ASSERT_EQ(initial_result, zeInit(0));
}

TEST_F(
LTracingPrologueEpilogueTests,
GivenEnabledTracerWithzeDeviceGetCallbacksWhenCallingzeDeviceGetThenUserDataIsSetAndResultUnchanged) {
Expand Down
16 changes: 0 additions & 16 deletions layer_tests/tracing/src/test_api_ltracing_compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,22 +372,6 @@ class LCTracingPrologueEpilogueTests : public ::testing::Test {
ze_bool_t can_access;
};

TEST_F(
LCTracingPrologueEpilogueTests,
GivenEnabledTracerWithzeInitCallbacksWhenCallingzeInitThenUserDataIsSetAndResultUnchanged) {

zelTracerInitRegisterCallback(tracer_handle, ZEL_REGISTER_PROLOGUE,
lzt::lprologue_callback);
zelTracerInitRegisterCallback(tracer_handle, ZEL_REGISTER_EPILOGUE,
lzt::lepilogue_callback);

ze_result_t initial_result = zeInit(0);

lzt::enable_ltracer(tracer_handle);

ASSERT_EQ(initial_result, zeInit(0));
}

TEST_F(
LCTracingPrologueEpilogueTests,
GivenEnabledTracerWithzeDeviceGetCallbacksWhenCallingzeDeviceGetThenUserDataIsSetAndResultUnchanged) {
Expand Down

0 comments on commit 2d8e8e1

Please sign in to comment.