3 # Can't use Test::Simple/More, they depend on Exporter.
8 # You have to do it this way or VMS will get confused.
9 printf "%sok %d%s\n", ($ok ? '' : 'not '), $test,
10 (defined $name ? " - $name" : '');
12 printf "# Failed test at line %d\n", (caller)[2] unless $ok;
23 ok( 1, 'Exporter compiled' );
27 Exporter->import("import");
32 { # [perl #39739] Exporter::Heavy ignores custom $SIG{__WARN__} handlers
35 local $SIG{__WARN__} = sub { push @warn, join "", @_ };
36 eval { Foo->import(":quux") };
37 ok(grep(/"quux" is not defined/, @warn), "warnings captured");