File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/module Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,11 @@ public void printToFile() throws IOException {
183
183
184
184
@ Test
185
185
public void readlink () throws IOException {
186
- Path symlinkPath = tmpfile .getParent ().resolve (tmpfile .getFileName () + "__symlink" );
186
+ Path realPath = tmpfile .toRealPath ();
187
+ Path symlinkPath = realPath .getParent ().resolve (tmpfile .getFileName () + "__symlink" );
187
188
try {
188
189
Path symlink = Files .createSymbolicLink (symlinkPath , Paths .get (tmpfile .toUri ()));
189
- assertPrints (tmpfile .toString () + "\n " , "import posix\n " +
190
+ assertPrints (realPath .toString () + "\n " , "import posix\n " +
190
191
"print(posix.readlink('" + symlink .toString () + "'))\n " );
191
192
} finally {
192
193
Files .deleteIfExists (symlinkPath );
You can’t perform that action at this time.
0 commit comments