Supress libcore.java.nio.file.Files2Test#test_createLink on GCE
This test asserts that Files.createLink() throws AccessDeniedException,
This behavior is implemented via an SELinux policy on Android, but
virtual test devices do not implement such policies. Therefore, the
test is expected to fail on virtual devices.
Test: Treehugger build succeeds
Test: Compared the list of tests found by the below commands, and
verified that AFTER omits test_createLink:
BEFORE:
$ cts-tradefed run collect-tests-only \
--include-filter CtsLibcoreTestCases
AFTER:
$ cts-tradefed run collect-tests-only \
--include-filter CtsLibcoreTestCases \
--compatibility:module-arg \
CtsLibcoreTestCases:core-expectation:/virtualdeviceknownfailures.txt
Bug: 19953790
Bug: 35670953
Change-Id: I09e63fe3ad1fdede2d1789a53887a74b39946e45
1 file changed