close($fh);
$| = 1;
-print "1..9\n";
+print "1..10\n";
my $cc = $Config{'cc'};
my $cl = ($^O eq 'MSWin32' && $cc eq 'cl');
my $skip_exe = $^O eq 'os2' && $Config{ldflags} =~ /(?<!\S)-Zexe\b/;
$embed_test = "run/nodebug $exe" if $^O eq 'VMS';
print "# embed_test = $embed_test\n";
$status = system($embed_test);
-print (($status? 'not ':'')."ok 9 # system returned $status\n");
+print (($status? 'not ':'')."ok 10 # system returned $status\n");
unlink($exe,"embed_test.c",$obj);
unlink("$exe.manifest") if $cl and $Config{'ccversion'} =~ /^(\d+)/ and $1 >= 14;
unlink("$exe$Config{exe_ext}") if $skip_exe;
#define my_puts(a) if(puts(a) < 0) exit(666)
-static const char * cmds [] = { "perl", "-e", "$|=1; print qq[ok 5\\n]", NULL };
+static const char * cmds [] = { "perl", "-e", "$|=1; print qq[ok 5\\n]; $SIG{__WARN__} = sub { print qq[ok 6\\n] if $_[0] =~ /Unexpected exit/; }; exit 5;", NULL };
#ifdef PERL_GLOBAL_STRUCT_PRIVATE
static struct perl_vars *my_plvarsp;
my_puts("ok 2");
perl_construct(my_perl);
+ my_perl->Iexit_flags |= PERL_EXIT_WARN;
my_puts("ok 3");
perl_run(my_perl);
- my_puts("ok 6");
+ my_puts("ok 7");
perl_destruct(my_perl);
- my_puts("ok 7");
+ my_puts("ok 8");
perl_free(my_perl);
- my_puts("ok 8");
+ my_puts("ok 9");
PERL_SYS_TERM();