diff options
Diffstat (limited to 'test_ffi/tests')
-rw-r--r-- | test_ffi/tests/integration_tests.rs | 1 | ||||
-rw-r--r-- | test_ffi/tests/test.js | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test_ffi/tests/integration_tests.rs b/test_ffi/tests/integration_tests.rs index 0ae395da8..28176f187 100644 --- a/test_ffi/tests/integration_tests.rs +++ b/test_ffi/tests/integration_tests.rs @@ -37,6 +37,7 @@ fn basic() { println!("{:?}", output.status); assert!(output.status.success()); let expected = "\ + dlopen doesn't panic\n\ something\n\ [1, 2, 3, 4, 5, 6, 7, 8]\n\ 579\n\ diff --git a/test_ffi/tests/test.js b/test_ffi/tests/test.js index fc354139d..098541265 100644 --- a/test_ffi/tests/test.js +++ b/test_ffi/tests/test.js @@ -10,6 +10,14 @@ const [libPrefix, libSuffix] = { const libPath = `${targetDir}/${libPrefix}test_ffi.${libSuffix}`; const resourcesPre = Deno.resources(); + +// dlopen shouldn't panic +try { + Deno.dlopen("cli/src/main.rs", {}); +} catch (_) { + console.log("dlopen doesn't panic"); +} + const dylib = Deno.dlopen(libPath, { "print_something": { parameters: [], result: "void" }, "print_buffer": { parameters: ["buffer", "usize"], result: "void" }, |