summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_record_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/cmd_record_test.cpp')
-rw-r--r--simpleperf/cmd_record_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp
index 350a24f8..c4d347fa 100644
--- a/simpleperf/cmd_record_test.cpp
+++ b/simpleperf/cmd_record_test.cpp
@@ -880,7 +880,9 @@ TEST(record_cmd, check_trampoline_after_art_jni_methods) {
std::string sym_name = get_symbol_name(thread, ips[i]);
if (android::base::StartsWith(sym_name, "art::Method_invoke") && i + 1 < ips.size()) {
has_check = true;
- if (get_symbol_name(thread, ips[i + 1]) != "art_jni_trampoline") {
+ std::string name = get_symbol_name(thread, ips[i + 1]);
+ if (!android::base::EndsWith(name, "jni_trampoline")) {
+ GTEST_LOG_(ERROR) << "unexpected symbol after art::Method_invoke: " << name;
return false;
}
}