diff options
author | bohu <bohu@google.com> | 2017-05-17 14:18:59 -0700 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2017-05-19 02:59:48 +0100 |
commit | ebed02ce4e5b38af8f695822f108cca6360a2da4 (patch) | |
tree | 86bc0d495b2f76073f24d649755cfc70b5af4425 /annotations/generate_annotated_java_files.py | |
parent | 67d67e686df79ac3ec14b04dda1115f3c097d9c2 (diff) |
Skip multicast test if it is not supported
DatagramChannelMulticastTest had some tests that
would not check the supportsMulticast flag to see
if they should execute before accessing fields that
are not initialized when supportsMulticast
is false.
supportsMulticast is set to false when the system
property "android.cts.device.multicast" is "false"
(normally provided by the CTS runner).
Thanks to bohu@ for the original fix.
BUG: 37719321
Test: vogar --vm-arg "-Dandroid.cts.device.multicast=false" \
luni/src/test/java/libcore/java/nio/channels/DatagramChannelMulticastTest.java
(cherry picked from commit f515ad8fb5dac39b9e32f4cd06097ecaabb10fbd)
Change-Id: Ifb5dc448d9f72b1267d133c5b0b13983e79a8ebe
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions