Failing unit test when building from a path with a symlink in it
Pieter12345 opened this issue ยท 1 comments
Versions
WorldEdit version: Build 5183
Platform version: Irrelevant
OS version: Windows 10
Describe the bug
Unit test com.sk89q.worldedit.world.snapshot.experimental.fs.FileSystemSnapshotDatabaseTest.rootIsAbsoluteDir(FileSystemSnapshotDatabaseTest.java:148)
fails when building WorldEdit from a command prompt with a symlink in the path to the WorldEdit source directory. The failure is caused by an assert comparing the path with the symlink in it with the path without the symlink in it. The target directories are the same, but the path comparison doesn't support resolving symlinks.
To Reproduce
- Open a command prompt.
- Use
cd C:\...\some_symlink\...\worldedit
to nativate to the WorldEdit source directory. - Run
gradlew install
.
Expected behavior
No failing unit tests.
Screenshots
Additional context