This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid loading .bs files twice when using XSLoader
[perl5.git] / ext / XS-APItest / t / bootstrap.t
CommitLineData
2e6f1ae9
DM
1#!perl -w
2#
3# check that .bs files are loaded and executed.
4# During build of XS::APItest, the presence of APItest_BS should
5# cause a non-empty APItest.bs file to auto-generated. When loading
6# APItest.so, the .bs should be automatically executed, which should
7# set $::bs_file_got_executed.
8
9use strict;
10
11use Test::More;
12use XS::APItest;
13
fc9d6b91 14is $::bs_file_got_executed, 1, "BS file was executed once";
2e6f1ae9
DM
15
16done_testing();
17