summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ocaml
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-01-14 23:16:59 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-01-14 23:16:59 +0000
commit36846e9342a402bab1cf49abdbda818a6045e32f (patch)
tree70eb3c8ec1fc82ce0483c518889bdcf6135b5175 /Examples/test-suite/ocaml
parentb82d3007f3754cf321838fe4e78115b2d8b3e85b (diff)
parenta851e0a9ac448e21754f16c4e0978535049682da (diff)
downloadswig-36846e9342a402bab1cf49abdbda818a6045e32f.tar.gz
Merge branch 'ZackerySpytz-OCaml-class-example'
* ZackerySpytz-OCaml-class-example: [OCaml] Re-enable the using_protected unit test [OCaml] Add a class example
Diffstat (limited to 'Examples/test-suite/ocaml')
-rw-r--r--Examples/test-suite/ocaml/Makefile.in1
-rw-r--r--Examples/test-suite/ocaml/using_protected_runme.ml2
2 files changed, 1 insertions, 2 deletions
diff --git a/Examples/test-suite/ocaml/Makefile.in b/Examples/test-suite/ocaml/Makefile.in
index 9128b3720..23b05e477 100644
--- a/Examples/test-suite/ocaml/Makefile.in
+++ b/Examples/test-suite/ocaml/Makefile.in
@@ -40,7 +40,6 @@ nested_directors \
preproc_constants \
smart_pointer_inherit \
typedef_mptr \
-using_protected \
FAILING_C_TESTS = \
enums \
diff --git a/Examples/test-suite/ocaml/using_protected_runme.ml b/Examples/test-suite/ocaml/using_protected_runme.ml
index 4dc4fe1c9..29647c288 100644
--- a/Examples/test-suite/ocaml/using_protected_runme.ml
+++ b/Examples/test-suite/ocaml/using_protected_runme.ml
@@ -2,7 +2,7 @@ open Swig
open Using_protected
let f = new_FooBar C_void
-let _ = (invoke f) "x" (C_int 3)
+let _ = (invoke f) "[x]" (C_int 3)
let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
raise (Failure "blah(int)")