That test was not testing what it was supposed to test :)
[Config-Perl-V.git] / t / 21_plv58.t
blob4fec3570f655f50dfc5e31f8d8286b36925ede39
1 #!/pro/bin/perl
3 use strict;
4 use warnings;
6 BEGIN {
7 use Test::More;
8 my $tests = 9;
9 unless ($ENV{PERL_CORE}) {
10 require Test::NoWarnings;
11 Test::NoWarnings->import ();
12 $tests++;
15 plan tests => $tests;
18 use Config::Perl::V;
20 ok (my $conf = Config::Perl::V::plv2hash (<DATA>), "Read perl -v block");
21 ok (exists $conf->{$_}, "Has $_ entry") for qw( build environment config inc );
23 is ($conf->{build}{osname}, $conf->{config}{osname}, "osname");
24 is ($conf->{build}{stamp}, 0, "No build time known");
25 is ($conf->{config}{version}, "5.8.9", "reconstructed \%Config{version}");
26 is ($conf->{config}{usethreads}, "define", "This was a threaded perl");
28 __END__
29 Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
30 Platform:
31 osname=linux, osvers=2.6.34.7-0.4-desktop, archname=i686-linux-thread-multi-64int-ld
32 uname='linux tux09.procura.nl 2.6.34.7-0.4-desktop #1 smp preempt 2010-10-07 19:07:51 +0200 i686 i686 i386 gnulinux '
33 config_args='-Dusedevel -Dusethreads -Duseithreads -Duse64bitint -Duselongdouble -Duseperlio -des -Dusedevel -Uinstallusrbinperl -Dprefix=/media/Tux/perls-t'
34 hint=recommended, useposix=true, d_sigaction=define
35 usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
36 useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
37 use64bitint=define use64bitall=undef uselongdouble=define
38 usemymalloc=n, bincompat5005=undef
39 Compiler:
40 cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
41 optimize='-O2',
42 cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include'
43 ccversion='', gccversion='4.5.0 20100604 [gcc-4_5-branch revision 160292]', gccosandvers=''
44 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
45 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
46 ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
47 alignbytes=4, prototype=define
48 Linker and Libraries:
49 ld='cc', ldflags ='-L/pro/local/lib'
50 libpth=/pro/local/lib /lib /usr/lib /usr/local/lib
51 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
52 perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
53 libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, libperl=libperl.a
54 gnulibc_version='2.11.2'
55 Dynamic Linking:
56 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
57 cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib'
60 Characteristics of this binary (from libperl):
61 Compile-time options: DEBUGGING MULTIPLICITY PERL_IMPLICIT_CONTEXT
62 PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_INT
63 USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES
64 USE_LONG_DOUBLE USE_PERLIO USE_REENTRANT_API
65 Built under linux
66 Compiled at Oct 21 2010 14:50:53
67 @INC:
68 /media/Tux/perls-t/lib/5.8.9/i686-linux-thread-multi-64int-ld
69 /media/Tux/perls-t/lib/5.8.9
70 /media/Tux/perls-t/lib/site_perl/5.8.9/i686-linux-thread-multi-64int-ld
71 /media/Tux/perls-t/lib/site_perl/5.8.9