diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dl/test_import.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/dl/test_import.rb b/test/dl/test_import.rb index 56a417f9ab..64cbf53fbc 100644 --- a/test/dl/test_import.rb +++ b/test/dl/test_import.rb @@ -41,6 +41,15 @@ module DL end class TestImport < TestBase + def test_ensure_call_dlload + err = assert_raises(RuntimeError) do + Class.new do + extend DL::Importer + extern "void *strcpy(char*, char*)" + end + end + end + def test_malloc() s1 = LIBC::Timeval.malloc() s2 = LIBC::Timeval.malloc() |