8308977: gtest:codestrings fails on riscv
Reviewed-by: fyang
This commit is contained in:
parent
f600d0369a
commit
4526282266
@ -46,8 +46,10 @@ static const char* replace_addr_expr(const char* str)
|
||||
// Padding: aarch64
|
||||
std::basic_string<char> tmp2 = std::regex_replace(tmp1, std::regex("\\s+<addr>:\\s+\\.inst\\t<addr> ; undefined"), "");
|
||||
std::basic_string<char> tmp3 = std::regex_replace(tmp2, std::regex("\\s+<addr>:\\s+udf\\t#0"), "");
|
||||
// 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(tmp3, std::regex("\\s+<addr>:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), "");
|
||||
std::basic_string<char> red = std::regex_replace(tmp4, std::regex("\\s+<addr>:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), "");
|
||||
|
||||
return os::strdup(red.c_str());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user