8259897: gtest os.dll_address_to_function_and_library_name_vm fails on AIX

Reviewed-by: mdoerr
This commit is contained in:
Thomas Stuefe 2021-01-21 10:30:36 +00:00
parent 7f7166dbc8
commit 4dfd8cc4a6

View File

@ -748,15 +748,5 @@ TEST_VM(os, dll_address_to_function_and_library_name) {
EXPECT_EQ(tmp[10], 'X');
LOG("%s", output);
}
// Pointer (probably) outside function, should show at least the library name
addr -= 10;
st.reset();
EXPECT_TRUE(os::print_function_and_library_name(&st, addr,
provide_scratch_buffer ? tmp : NULL,
sizeof(tmp),
shorten_paths, demangle));
EXPECT_CONTAINS(output, "jvm"); // "jvm.dll" or "libjvm.so" or similar
LOG("%s", output);
}
}