Commit b7cfbd8
Add version guards to Enzyme test files to prevent loading on Julia 1.12
Added defensive guards at the top of Enzyme test files to explicitly skip
tests on Julia 1.12+ prerelease versions. This prevents accidental Enzyme
loading if these test files are run directly outside of the normal test
harness.
While the CI workflow and test/runtests.jl already prevent Enzyme tests
from running on v1.12, these file-level guards provide an additional
safety layer and make the version requirement explicit in each test file.
Affected files:
- test/enzyme/autodiff_events.jl
- test/enzyme/discrete_adjoints.jl
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 02519e0 commit b7cfbd8
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
0 commit comments