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 {
183183
184184 @ Test
185185 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" );
187188 try {
188189 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 " +
190191 "print(posix.readlink('" + symlink .toString () + "'))\n " );
191192 } finally {
192193 Files .deleteIfExists (symlinkPath );
You can’t perform that action at this time.
0 commit comments