Skip to content

Commit

Permalink
Only enable the test when debug bound checking is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Mar 9, 2024
1 parent d46773c commit 001d90f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/unit_test/TestViewOutOfBoundsAccess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ TEST(TEST_CATEGORY, append_formated_multidimensional_index) {
}
}

#ifdef KOKKOS_ENABLE_DEBUG_BOUNDS_CHECK

template <class View, class ExecutionSpace>
struct TestViewOutOfBoundAccess {
View v;
Expand Down Expand Up @@ -163,4 +165,6 @@ TEST(TEST_CATEGORY_DEATH, view_out_of_bounds_access) {
test_view_out_of_bounds_access<ExecutionSpace>();
}

#endif

} // namespace

0 comments on commit 001d90f

Please sign in to comment.