SWDEV-548241 - Add missing destroy calls in graph tests (#520)

Co-authored-by: Vladana Stojiljkovic <Vladana.Stojiljkovic@amd.com>
This commit is contained in:
systems-assistant[bot]
2025-11-13 11:13:40 +01:00
zatwierdzone przez GitHub
rodzic e2d83014cf
commit 7450910e53
22 zmienionych plików z 120 dodań i 29 usunięć
@@ -60,6 +60,7 @@ TEST_CASE("Unit_hipGraphExecGetFlags_Negative") {
HIP_CHECK(
hipGraphInstantiateWithFlags(&graphExec, graph, hipGraphInstantiateFlagAutoFreeOnLaunch));
HIP_CHECK_ERROR(hipGraphExecGetFlags(nullptr, &flags), hipErrorInvalidValue);
HIP_CHECK(hipGraphExecDestroy(graphExec));
HIP_CHECK(hipGraphDestroy(graph));
}
@@ -136,6 +137,7 @@ TEST_CASE("Unit_hipGraphExecGetFlags_positive") {
REQUIRE(flags == hipGraphInstantiateFlagUseNodePriority);
}
#endif
HIP_CHECK(hipGraphExecDestroy(graphExec));
HIP_CHECK(hipGraphDestroy(graph));
}
/**