Ignore the FileSecurityTest.EveryoneMayNotBeOwner test when running as
authorNiklas Therning <niklas@therning.org>
Mon, 19 Sep 2016 09:01:41 +0000 (11:01 +0200)
committerNiklas Therning <niklas@therning.org>
Mon, 19 Sep 2016 09:08:27 +0000 (11:08 +0200)
commitc32dafe7d7d4a97f239f9b0d95606b4e65663955
tree06eb258d707a4f3f9315f4a934d356049c6b8681
parent5d51431e478713972a8aa0fff8c54864b9ddfa83
Ignore the FileSecurityTest.EveryoneMayNotBeOwner test when running as
Administrator

This test fails when running as Administrator since Administrator CAN set the
owner to Everyone. This patch ignores the test when running as Administrator.
The check has to be done after the File.SetAccessControl() call that is
expected to fail since when we aren't running as Administrator the IsInRole()
check will trigger UAC which we need to prevent when possible.
mcs/class/corlib/Test/System.Security.AccessControl/FileSecurityTest.cs