Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Conversation

@belingueres
Copy link

Fix MSHARED-574

Added class TestPrivilegesUtil to assert if tests are running with privileges.

…AndReadSymlink

Added class TestPrivilegesUtil to assert if tests are running with privileges.
@michael-o
Copy link
Member

With this patch, the test fails now on non-Windows:

Okt 16, 2016 1:16:27 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs. Unix error code 953377576.
Okt 16, 2016 1:16:27 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

Results :

Failed tests:
  Java7SupportTest.createAndReadSymlink:52 This test needs access to privileged operations to work!! Run command line as Administrator!!

Tests run: 870, Failures: 1, Errors: 0, Skipped: 26

@michael-o
Copy link
Member

I would rather see skipping this test on Windows if you do not have elevated permissions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants