Skip to content

Enforce type stability and test for it#272

Merged
giordano merged 3 commits intoJuliaPackaging:masterfrom
gbaraldi:cxxabi-type-stable
Sep 25, 2022
Merged

Enforce type stability and test for it#272
giordano merged 3 commits intoJuliaPackaging:masterfrom
gbaraldi:cxxabi-type-stable

Conversation

@gbaraldi
Copy link
Contributor

#271 made expand_cxxstring_abis type unstable, so force specialization on it.

test/rootfs.jl Outdated
]
@test expand_gfortran_versions([Platform("x86_64", "linux"; sanitize="memory")]) ==
[Platform("x86_64", "linux"; sanitize="memory")]
@test expand_gfortran_versions(Platform[]) == Platform[]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a good test:

julia> [] == Platform[]
true

You want to check either the eltype or, which is pretty much the same, x isa Vector{Platform}

@giordano giordano merged commit a9422df into JuliaPackaging:master Sep 25, 2022
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.

2 participants