Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 20, 2024
1 parent a1c68f9 commit fe2dcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/C_API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ end

function test_copy_failure()
opt = Opt(:LD_MMA, 2)
opt.opt = C_NULL
setfield!(opt, :opt, C_NULL)
@test_throws ErrorException("Error in nlopt_copy") copy(opt)
return
end
Expand Down

0 comments on commit fe2dcb5

Please sign in to comment.