Skip to content

Commit f6a0adb

Browse files
umfranzwassistant-librarian[bot]
authored andcommitted
[rocm-libraries] ROCm/rocm-libraries#7343 (commit 0cdc9fa)
[rocThrust] Disable large size tests under ASAN ## Motivation These two rocThrust unit tests use large input sizes, making them impractical to run under ASAN: - UniqueByKeyIntegralTests.TestUniqueCopyByKeyLargeInput - UniqueByKeyIntegralTests.TestUniqueCopyByKeyLargeOutCount ## Technical Details This change disables these tests within ASAN builds. ## Test Plan Build and run test target unique_by_key.hip with ASAN enabled. Ensure the two tests mentioned above are skipped. ## Test Result Tests are skipped correctly. ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
1 parent 08570e4 commit f6a0adb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/test_unique_by_key.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,10 @@ TEST(UniqueIntegralTests, TestUniqueDevice)
537537

538538
TYPED_TEST(UniqueByKeyIntegralTests, TestUniqueCopyByKeyLargeInput)
539539
{
540+
#ifdef ADDRESS_SANITIZER_BUILD
541+
GTEST_SKIP() << "Skipping large size test for address sanitizer build.";
542+
#endif
543+
540544
using K = typename TestFixture::input_type;
541545
using type = K;
542546
using index_type = std::int64_t;
@@ -568,6 +572,10 @@ TYPED_TEST(UniqueByKeyIntegralTests, TestUniqueCopyByKeyLargeInput)
568572

569573
TYPED_TEST(UniqueByKeyIntegralTests, TestUniqueCopyByKeyLargeOutCount)
570574
{
575+
#ifdef ADDRESS_SANITIZER_BUILD
576+
GTEST_SKIP() << "Skipping large size test for address sanitizer build.";
577+
#endif
578+
571579
SCOPED_TRACE(testing::Message() << "with device_id= " << test::set_device_from_ctest());
572580

573581
constexpr std::size_t num_items = 4400000000ULL;

0 commit comments

Comments
 (0)