Skip to content

Commit fc14158

Browse files
committed
test: properly disabling parameterized tests
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent c157dc8 commit fc14158

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cpp/test_modules_as_engines.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ TEST_P(CppAPITests, ModuleAsEngineIsClose) {
1717
ASSERT_TRUE(torch_tensorrt::tests::util::cosineSimEqual(jit_results[0], trt_results[0].reshape_as(jit_results[0])));
1818
}
1919

20-
#ifndef DISABLE_TEST_IN_CI
20+
#ifdef DISABLE_TEST_IN_CI
21+
22+
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CppAPITests);
23+
24+
#else
2125

2226
INSTANTIATE_TEST_SUITE_P(
2327
ModuleAsEngineForwardIsCloseSuite,

0 commit comments

Comments
 (0)