Skip to content

Commit

Permalink
Revert "add test for recurring precompile" (#3779)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored Feb 6, 2024
1 parent dbf114f commit 6dd0e7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 221 deletions.
21 changes: 0 additions & 21 deletions test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -274,27 +274,6 @@ import .FakeTerminals.FakeTerminal
@test_throws Pkg.Types.PkgError Pkg.precompile("DoesNotExist")
Pkg.precompile() # should be a no-op
end end
@testset "Issue 3359: Recurring precompile" begin
isolate() do; cd_tempdir() do tmp
cp(joinpath(@__DIR__, "test_packages", "RecurringPrecompile"), joinpath(tmp, "RecurringPrecompile"))
Pkg.activate("RecurringPrecompile")
iob = IOBuffer()
Pkg.precompile(io=iob)
@test occursin("Precompiling", String(take!(iob)))
Pkg.precompile(io=iob) # should be a no-op
if !occursin("Precompiling", String(take!(iob)))
@test true
else
# helpful for debugging why on CI
println("Repeated precompilation detected. Running again with loading debugging on")
withenv("JULIA_DEBUG" => "loading") do
Pkg.precompile(io=iob)
println(String(take!(iob)))
@test false
end
end
end end
end
end

@testset "Pkg.API.check_package_name: Error message if package name ends in .jl" begin
Expand Down
200 changes: 0 additions & 200 deletions test/test_packages/RecurringPrecompile/Manifest.toml

This file was deleted.

0 comments on commit 6dd0e7c

Please sign in to comment.