aboutsummaryrefslogtreecommitdiffstats
path: root/regress/104-interposition-discarded.lua
blob: 4261bcbdbbdc4163248a3ab2323783768e6c68cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env lua

require"regress".export".*"

local ssl_context = require "openssl.ssl.context"

local value = {}
ssl_context.interpose("foo", value)
check(ssl_context.new().foo == value, "interpose failed")

require "openssl.ssl" -- Pick a module that doesn't get loaded by regress.lua
check(ssl_context.new().foo == value, "loading a module reset methods")