Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "juliadir" test #867

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Fix "juliadir" test #867

merged 1 commit into from
Nov 18, 2024

Conversation

Keno
Copy link
Collaborator

@Keno Keno commented Nov 18, 2024

The test was ineffective because it was relying on binding replacement, which is undefined behavior on all versions of Julia (ironically it will not be in 1.12, but that change is not done yet). As a result, the redefinition of juliadir was not taking effect and the test was simply running with the old juliadir. Change juliadir to a (typed) global and update the test to make sure it's actually working.

@Keno Keno force-pushed the kf/juliadirtest branch 3 times, most recently from ce16a23 to 1c80fb8 Compare November 18, 2024 05:13
The test was ineffective because it was relying on binding replacement,
which is undefined behavior on all versions of Julia (ironically it will
not be in 1.12, but that change is not done yet). As a result,
the redefinition of `juliadir` was not taking effect and the
test was simply running with the old juliadir. Change `juliadir`
to a (typed) global and update the test to make sure it's actually
working.
@Keno Keno merged commit 71d8e61 into master Nov 18, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant