Skip to content

Commit

Permalink
small test updates for jb/functions
Browse files Browse the repository at this point in the history
longer timeout in sigint test

`T()` should not be considered a `convert` call in replutil test.
  • Loading branch information
JeffBezanson committed Jan 26, 2016
1 parent 3394e47 commit e7050ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,7 @@ end
@test_throws InterruptException begin
#ccall(:raise, Void, (Cint,), 2) # llvm installs a custom version on Darwin that resolves to pthread_kill(pthread_self(), sig), which isn't what we want
ccall(:kill, Void, (Cint, Cint,), getpid(), 2)
Libc.systemsleep(0.1) # wait for SIGINT to arrive
Libc.systemsleep(0.2) # wait for SIGINT to arrive
end
ccall(:jl_exit_on_sigint, Void, (Cint,), 1)
end
Expand Down Expand Up @@ -3540,7 +3540,7 @@ f14339{T<:Union{}}(x::T, y::T) = 0
module JLCall14301

# Define f
f() = 1
function f end

let i = Any[[1.23], [2.34]]
# f() with capture variables
Expand Down
4 changes: 1 addition & 3 deletions test/replutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ end
abstract T11007
let
err_str = @except_str T11007()
@test contains(err_str, "convert")
@test contains(err_str, "constructor")
@test contains(err_str, "T11007(...)")
@test contains(err_str, "no method matching T11007()")
end

# issue 11845
Expand Down

0 comments on commit e7050ad

Please sign in to comment.