Skip to content

Commit

Permalink
Change include_stdlib=false to not try to delete core intrinsics (#83)
Browse files Browse the repository at this point in the history
* include stdlib chagne

* neq

* coment

* Update src/testrel.jl

Co-authored-by: Martin McGrane <[email protected]>

---------

Co-authored-by: Mary McGrath <[email protected]>
Co-authored-by: Martin McGrane <[email protected]>
  • Loading branch information
3 people authored Mar 21, 2024
1 parent c203f5e commit 0d0b8d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/testrel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,13 @@ function test_rel_steps(;
# Setup steps that run before the first testing Step
config_query = ""
if !include_stdlib
config_query *= """def delete:rel:catalog:model = rel:catalog:model\n"""
# Delete all but the core-intrinsics file, which would cause an error on deletion.
# We use the native `rel_primitive_neq` directly, since `!=` is defined in the stdlib.
config_query *= """
def delete:rel:catalog:model(srcname, src) =
rel:catalog:model(srcname, src) and
rel_primitive_neq(srcname, "rel/core-intrinsics")
"""
end

if debug && !debug_trace
Expand Down

0 comments on commit 0d0b8d1

Please sign in to comment.