aboutsummaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rwxr-xr-xregress/104-interposition-discarded.lua12
-rwxr-xr-x[-rw-r--r--]regress/53-csr-extensions.lua0
2 files changed, 12 insertions, 0 deletions
diff --git a/regress/104-interposition-discarded.lua b/regress/104-interposition-discarded.lua
new file mode 100755
index 0000000..4261bcb
--- /dev/null
+++ b/regress/104-interposition-discarded.lua
@@ -0,0 +1,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")
diff --git a/regress/53-csr-extensions.lua b/regress/53-csr-extensions.lua
index 6b7d60c..6b7d60c 100644..100755
--- a/regress/53-csr-extensions.lua
+++ b/regress/53-csr-extensions.lua