Skip to content

Commit 18432c0

Browse files
committed
Fix build
1 parent 51c2cbc commit 18432c0

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_FALSE(test_pattern(&st, pattern)) << pattern << " found in " << st.as_string();
54+
ASSERT_THAT(st.base(), testing::HasSubstr(pattern));
5555
}
5656

5757
class LockerThread : public JavaTestThread {

0 commit comments

Comments
 (0)