Skip to content

Commit

Permalink
loadlibrary tests rely on the NCITEST library, which isn't installed …
Browse files Browse the repository at this point in the history
…with Parrot make install. Need to rethink those tests
  • Loading branch information
Whiteknight committed Oct 21, 2009
1 parent 61ccc7b commit c79e40e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/308-loadlibrary.t
@@ -1,16 +1,19 @@
plan(4);

signatures = [ '[]' ];
signatures = [ "[]" ];
x = loadlibrary('nonexistent', signatures, 'FOOBAR');
is(x, 0, "nonexistent library")

x = libisloaded('FOOBAR');
is(x, 0, "nonexistent library not loaded")

start_todo("Need to figure out how to load the NCITEST library from Parrot");

signatures = [ '["nci_c", "c"]' ];
x = loadlibrary('../../runtime/parrot/dynext/libnci_test', signatures, 'NCITEST');
is(x, 1, "can load ncitest lib");

x = libisloaded('NCITEST');
is(x, 1, "existent library is loaded");

end_todo();

0 comments on commit c79e40e

Please sign in to comment.