Make sure to abort the test if a thread dies
[p5sagit/Devel-PeekPoke.git] / t / 00info.t
CommitLineData
6be43b56 1use strict;
2use warnings;
3
4use Test::More;
5use Devel::PeekPoke::Constants qw/PTR_SIZE PTR_PACK_TYPE BIG_ENDIAN/;
569e5f29 6use Config;
6be43b56 7
8diag("\nPerl: $]\n");
569e5f29 9diag(sprintf "%s: %s\n", $_, __PACKAGE__->$_ ) for (qw/BIG_ENDIAN PTR_PACK_TYPE PTR_SIZE/);
10diag("IV_SIZE: $Config{ivsize}\n");
11
12if (
13 PTR_SIZE != $Config{ivsize}
14 and
15 eval { require Devel::PeekPoke::PP }
16 and
17 defined (my $offset = eval { Devel::PeekPoke::PP::_XPV_IN_SVU_OFFSET() })
18) {
19 diag "Pointer offset within an IV_SIZEd UNION: $offset\n"
20}
6be43b56 21
22ok('this is not a test, it just serves to diag() out what this system is using, for the curious (me)');
23done_testing;