Skip to content

Commit

Permalink
8332499: Gtest codestrings.validate_vm fail on linux x64
Browse files Browse the repository at this point in the history
Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
  • Loading branch information
sendaoYan committed May 20, 2024
1 parent d6b7f9b commit bd894e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hotspot/gtest/code/test_codestrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ static const char* replace_addr_expr(const char* str)
// Padding: riscv
std::basic_string<char> tmp4 = std::regex_replace(tmp3, std::regex("\\s+<addr>:\\s+unimp"), "");
// Padding: x64
std::basic_string<char> red = std::regex_replace(tmp4, std::regex("\\s+<addr>:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), "");
std::basic_string<char> tmp5 = std::regex_replace(tmp4, std::regex("\\s+<addr>:\\s+nop[ \\t]+(?!\\n\\s+;;)"), "");
std::basic_string<char> red = std::regex_replace(tmp5, std::regex("\\s+<addr>:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), "");

return os::strdup(red.c_str());
}
Expand Down

0 comments on commit bd894e1

Please sign in to comment.