summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alix <agespino@google.com> 2023-10-04 20:19:54 +0000
committer Alix <agespino@google.com> 2023-10-04 20:19:54 +0000
commit141ab6adde88656b4192cd0aa44572bb93a8620c (patch)
tree5dedcf3c38bd1c18dc665936264309993b468843
parent31a5b2c1ef833dfb8de7be5d8b8374ed888e55a0 (diff)
use message in android.AssertStringMatches()
function does not currently use the message argument passed to it. outputting this as part of the error message would be helpful for any failures. Change-Id: I5307df1567e79d85f81edd5a9eb3d4a093041535
-rw-r--r--android/test_asserts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/test_asserts.go b/android/test_asserts.go
index 3a2cb1ad9..c33ade5a2 100644
--- a/android/test_asserts.go
+++ b/android/test_asserts.go
@@ -148,7 +148,7 @@ func AssertStringMatches(t *testing.T, message, s, expectedRex string) {
return
}
if !ok {
- t.Errorf("%s does not match regular expression %s", s, expectedRex)
+ t.Errorf("%s: %s does not match regular expression %s", message, s, expectedRex)
}
}