Skip to content

MWE for failures in file #106

Closed
Closed
@macd

Description

@macd

The first two errors are due to throwing the wrong exception. The third error has my new favorite error message: sigatomic_end called in non-sigatomic region

using JuliaInterpreter
include("utils.jl")

module file_test
    using Test
end

m = file_test

ex = quote
    @test_throws ArgumentError download("good", "ba\0d") # Thrown: UndefVarError
    @test_throws ArgumentError download("ba\0d", "good") # Thrown: UndefVarError
    n = tempname()
    w = open(n, "a")
    write(w, "A")
    flush(w)  #  sigatomic_end called in non-sigatomic region
    #close(w)
    #rm(n)
end

frame = JuliaInterpreter.prepare_thunk(m, ex)
JuliaInterpreter.finish_and_return!(JuliaStackFrame[], frame)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions