Skip to content

Commit bf4f971

Browse files
authored
Update test_markWord.cpp
Negate HasSubstr in assert_not_test_pattern
1 parent 18432c0 commit bf4f971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/hotspot/gtest/oops/test_markWord.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void assert_test_pattern(Handle object, const char* pattern) {
5151
static void assert_not_test_pattern(Handle object, const char* pattern) {
5252
stringStream st;
5353
object->print_on(&st);
54-
ASSERT_THAT(st.base(), testing::HasSubstr(pattern));
54+
ASSERT_THAT(st.base(), !testing::HasSubstr(pattern));
5555
}
5656

5757
class LockerThread : public JavaTestThread {

0 commit comments

Comments
 (0)