diff --git a/test/hotspot/gtest/runtime/test_atomic.cpp b/test/hotspot/gtest/runtime/test_atomic.cpp index 35b415319ce..e7c6f9e3f2b 100644 --- a/test/hotspot/gtest/runtime/test_atomic.cpp +++ b/test/hotspot/gtest/runtime/test_atomic.cpp @@ -53,7 +53,7 @@ struct AtomicAddTestSupport { } }; -TEST(AtomicAddTest, int32) { +TEST_VM(AtomicAddTest, int32) { using Support = AtomicAddTestSupport; Support().test_add(); Support().test_fetch_add(); @@ -61,14 +61,14 @@ TEST(AtomicAddTest, int32) { // 64bit Atomic::add is only supported on 64bit platforms. #ifdef _LP64 -TEST(AtomicAddTest, int64) { +TEST_VM(AtomicAddTest, int64) { using Support = AtomicAddTestSupport; Support().test_add(); Support().test_fetch_add(); } #endif // _LP64 -TEST(AtomicAddTest, ptr) { +TEST_VM(AtomicAddTest, ptr) { uint _test_values[10] = {}; uint* volatile _test_value{}; @@ -103,14 +103,14 @@ struct AtomicXchgTestSupport { } }; -TEST(AtomicXchgTest, int32) { +TEST_VM(AtomicXchgTest, int32) { using Support = AtomicXchgTestSupport; Support().test(); } // 64bit Atomic::xchg is only supported on 64bit platforms. #ifdef _LP64 -TEST(AtomicXchgTest, int64) { +TEST_VM(AtomicXchgTest, int64) { using Support = AtomicXchgTestSupport; Support().test(); } @@ -136,12 +136,12 @@ struct AtomicCmpxchgTestSupport { } }; -TEST(AtomicCmpxchgTest, int32) { +TEST_VM(AtomicCmpxchgTest, int32) { using Support = AtomicCmpxchgTestSupport; Support().test(); } -TEST(AtomicCmpxchgTest, int64) { +TEST_VM(AtomicCmpxchgTest, int64) { using Support = AtomicCmpxchgTestSupport; Support().test(); } @@ -186,7 +186,7 @@ struct AtomicCmpxchg1ByteStressSupport { } }; -TEST(AtomicCmpxchg1Byte, stress) { +TEST_VM(AtomicCmpxchg1Byte, stress) { AtomicCmpxchg1ByteStressSupport support; support.test(); } @@ -224,7 +224,7 @@ namespace AtomicEnumTestUnscoped { // Scope the enumerators. enum TestEnum { A, B, C }; } -TEST(AtomicEnumTest, unscoped_enum) { +TEST_VM(AtomicEnumTest, unscoped_enum) { using namespace AtomicEnumTestUnscoped; using Support = AtomicEnumTestSupport; @@ -235,7 +235,7 @@ TEST(AtomicEnumTest, unscoped_enum) { enum class AtomicEnumTestScoped { A, B, C }; -TEST(AtomicEnumTest, scoped_enum) { +TEST_VM(AtomicEnumTest, scoped_enum) { const AtomicEnumTestScoped B = AtomicEnumTestScoped::B; const AtomicEnumTestScoped C = AtomicEnumTestScoped::C; using Support = AtomicEnumTestSupport; @@ -329,28 +329,28 @@ const T AtomicBitopsTestSupport::_old_value; template const T AtomicBitopsTestSupport::_change_value; -TEST(AtomicBitopsTest, int8) { +TEST_VM(AtomicBitopsTest, int8) { AtomicBitopsTestSupport()(); } -TEST(AtomicBitopsTest, uint8) { +TEST_VM(AtomicBitopsTest, uint8) { AtomicBitopsTestSupport()(); } -TEST(AtomicBitopsTest, int32) { +TEST_VM(AtomicBitopsTest, int32) { AtomicBitopsTestSupport()(); } -TEST(AtomicBitopsTest, uint32) { +TEST_VM(AtomicBitopsTest, uint32) { AtomicBitopsTestSupport()(); } #ifdef _LP64 -TEST(AtomicBitopsTest, int64) { +TEST_VM(AtomicBitopsTest, int64) { AtomicBitopsTestSupport()(); } -TEST(AtomicBitopsTest, uint64) { +TEST_VM(AtomicBitopsTest, uint64) { AtomicBitopsTestSupport()(); } #endif // _LP64