Skip to content

Commit

Permalink
Fix gtest for MacOS and AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
tstuefe committed Nov 30, 2020
1 parent 71d8ef9 commit be7acf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/hotspot/gtest/runtime/test_os.cpp
Expand Up @@ -507,7 +507,10 @@ static void test_show_mappings(address start, size_t size) {
} else {
os::print_memory_mappings(&ss); // prints full address space
}
// Still an empty implementation on MacOS and AIX
#if defined(LINUX) || defined(_WIN32)
EXPECT_NE(buf[0], '\0');
#endif
// buf[buflen - 1] = '\0';
// tty->print_raw(buf);
FREE_C_HEAP_ARRAY(char, buf);
Expand Down

0 comments on commit be7acf6

Please sign in to comment.