Skip to content

Commit 2a3f0e7

Browse files
authored
Disable broken unit test on Mac M1 (#7655)
Disable it in general on non-x86_64 architectures. This vectorization code assumes SSE2, which isn't available on other architectures (such as ARM).
1 parent 0ced237 commit 2a3f0e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Detectors/TPC/simulation/test/testTPCSAMPAProcessing.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ BOOST_AUTO_TEST_CASE(SAMPA_saturation_test)
6161
}
6262
}
6363

64+
// On non-x86_64 architectures, the vectorization code doesn't work and triggers
65+
// an assertion error in Vc at runtime.
66+
#ifndef __x86_64__
6467
/// \brief Test of the Gamma4 function
6568
BOOST_AUTO_TEST_CASE(SAMPA_Gamma4_test)
6669
{
@@ -92,6 +95,7 @@ BOOST_AUTO_TEST_CASE(SAMPA_Gamma4_test)
9295
BOOST_CHECK_CLOSE(currentSignal, currentADC, 1E-3);
9396
}
9497
}
98+
#endif
9599

96100
/// \brief Test of the conversion functions
97101
BOOST_AUTO_TEST_CASE(SAMPA_Conversion_test)

0 commit comments

Comments
 (0)