Skip to content

Commit 7673b39

Browse files
narrow test to julia_version=nothing
1 parent be87e43 commit 7673b39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/dependencies.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,26 +367,27 @@ end
367367
end
368368

369369
@testset "PackageSpec with version" begin
370-
platform = Platform("x86_64", "linux"; libc="musl", cxxstring_abi="cxx11")
371370
# Install a dependency with a specific version number.
372371
@testset for version in (v"3.24.3+0", "3.24.3")
373372
with_temp_project() do dir
374373
prefix = Prefix(dir)
375374
dependencies = [
376375
PackageSpec(; name="CMake_jll", version = version)
377376
]
377+
platform = Platform("x86_64", "linux"; libc="musl", cxxstring_abi="cxx11")
378378
test_setup_dependencies(prefix, dependencies, platform)
379379
# The directory contains also executables from CMake dependencies.
380380
# Test will fail if `setup_dependencies` above failed.
381381
@test readdir(joinpath(destdir(dir, platform), "bin")) == ["c_rehash", "cmake", "cpack", "ctest", "openssl"] broken=VERSION>=v"1.9"
382382
end
383383
end
384-
@testset "should error if build is missing from a specific VersionNumber" begin
384+
@testset "should error if build is missing from a specific VersionNumber, with `julia_version=nothing`" begin
385385
with_temp_project() do dir
386386
prefix = Prefix(dir)
387387
dependencies = [
388388
PackageSpec(; name="CMake_jll", version = v"3.24.3")
389389
]
390+
platform = Platform("x86_64", "linux"; libc="musl", cxxstring_abi="cxx11", julia_version=nothing)
390391
# Pkg needs improve its error message here, but assume that it will still throw a pkgerror
391392
# https://github.com/JuliaLang/Pkg.jl/issues/4159
392393
@test_throws Pkg.Types.PkgError test_setup_dependencies(prefix, dependencies, platform)

0 commit comments

Comments
 (0)