edited all .t tests to not use use_ok to load File::Slurp. they now all
[urisagit/File-Slurp.git] / t / pseudo.t
CommitLineData
635c7876 1#!/usr/local/bin/perl -w
2
3use strict ;
4
99709852 5use File::Slurp ;
635c7876 6use Carp ;
7use Test::More ;
8
9plan( tests => 1 ) ;
10
11my $proc_file = "/proc/$$/auxv" ;
12
635c7876 13SKIP: {
14
15 unless ( -r $proc_file ) {
16
17 skip "can't find pseudo file $proc_file", 1 ;
18 }
19
20 test_pseudo_file() ;
21}
22
23sub test_pseudo_file {
24
25 my $data_do = do{ local( @ARGV, $/ ) = $proc_file; <> } ;
26
27 my $data_slurp = read_file( $proc_file ) ;
28
29 is( $data_do, $data_slurp, 'pseudo' ) ;
30}