aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Moore <devinmoore@google.com>2024-04-08 22:34:18 +0000
committerDevin Moore <devinmoore@google.com>2024-04-08 22:38:41 +0000
commit630ace55bdfbd50c44c0c0ea9947a0f9880558ba (patch)
tree151a3411348259a31237072834b009a0663fac07
parent975680af0b97a3f9790c8560b602340fb6b3b574 (diff)
downloadhidl-630ace55bdfbd50c44c0c0ea9947a0f9880558ba.tar.gz
Add log and use ExpectDeepEq for testing arrays with doubles
There is a rare flake in this test when checking equivalence of a repeated object of arrays. We can log the contents to help with debugging. Use ExpectDeepEq in case it handles this case better. Test: atest hidl_test_java Bug: 333127662 Change-Id: I2729f6f29ac762c80574640f6dd2ceb7b56acf5c
-rw-r--r--test/java_test/src/com/android/commands/hidl_test_java/HidlTestJava.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/java_test/src/com/android/commands/hidl_test_java/HidlTestJava.java b/test/java_test/src/com/android/commands/hidl_test_java/HidlTestJava.java
index 0999a92a..ef305874 100644
--- a/test/java_test/src/com/android/commands/hidl_test_java/HidlTestJava.java
+++ b/test/java_test/src/com/android/commands/hidl_test_java/HidlTestJava.java
@@ -1097,7 +1097,7 @@ public final class HidlTestJava {
}
IBase.LotsOfPrimitiveArrays out = proxy.testArrays(in);
- ExpectTrue(in.equals(out));
+ ExpectDeepEq(in, out);
}
{
@@ -1430,6 +1430,7 @@ public final class HidlTestJava {
}
public LotsOfPrimitiveArrays testArrays(LotsOfPrimitiveArrays in) {
+ Log.d(TAG, "tesArrays " + in.toString());
return in;
}