Skip to content

Commit bad3530

Browse files
d-torrancemahrud
authored andcommitted
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 819b47a commit bad3530

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

M2/Macaulay2/tests/normal/testing.m2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
testpkg = minimizeFilename(temporaryFileName() | ".m2")
1+
testpkg = temporaryFileName() | ".m2"
22
testpkg << ///newPackage("TestPackage")
33
beginDocumentation()
44
TEST "assert Equation(1 + 1, 2)"
55
/// << close
6+
testpkg = minimizeFilename realpath testpkg
67
loadPackage("TestPackage", FileName => testpkg)
78
check "TestPackage"
89
pkgtest = tests(0, "TestPackage")

0 commit comments

Comments
 (0)