Skip to content

Commit

Permalink
Fix destroy() ending the program prematurely
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Feb 4, 2015
1 parent 4f67da5 commit c0f4066
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Perl6.xs
Expand Up @@ -132,7 +132,7 @@ initialize()
void
destroy()
CODE:
MVM_vm_exit(instance);
MVM_vm_destroy_instance(instance);

SV *
eval_code(code)
Expand Down
9 changes: 6 additions & 3 deletions t/01load.t
@@ -1,7 +1,10 @@
use Test::More;
use Inline::Perl6;

ok(1);
Inline::Perl6::initialize;
Inline::Perl6::call_method("1..2\n");
Inline::Perl6::call_method('ok 1 - ');
Inline::Perl6::call_method('ok 2 - ');
ok(1);
Inline::Perl6::destroy;
ok(1);

done_testing;

0 comments on commit c0f4066

Please sign in to comment.