Skip to content

Commit 47acf12

Browse files
committed
Use "realpath" when creating test file to test tests
Now that we call "realpath" when loading files, we should get the expected output on systems like macOS where the temporary directory is a symlink.
1 parent c4a484f commit 47acf12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

M2/Macaulay2/tests/normal/testing.m2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testpkg = minimizeFilename(temporaryFileName() | ".m2")
1+
testpkg = toAbsolutePath(temporaryFileName() | ".m2")
22
testpkg << ///newPackage("TestPackage")
33
beginDocumentation()
44
TEST "assert Equation(1 + 1, 2)"
@@ -11,7 +11,7 @@ assert Equation(toSequence locate pkgtest, (testpkg, 3, 5, 3, 32, 3, 5))
1111
assert Equation(toString pkgtest, concatenate(
1212
"-- test source: ", toString locate pkgtest, newline,
1313
"assert Equation(1 + 1, 2)"))
14-
assert Equation(net pkgtest, "TestInput[" | testpkg | ":3:5-3:32]")
14+
assert Equation(net pkgtest, "TestInput[" | realpath testpkg | ":3:5-3:32]")
1515
beginDocumentation()
1616
expectedCode = DIV{
1717
new FilePosition from (testpkg, 3, 5, 3, 32, 3, 5),

0 commit comments

Comments
 (0)