use strict;
use warnings FATAL => 'all';

use Config;
use Apache::Test;

# skip all tests in this directory unless mod_perl is enabled for 2.x series
plan tests => 1, \&my_need;

ok 1;

sub my_need {

    my $ok = 1;

    if ( $Config{'osname'} eq 'linux' ) {
        $ok = need_module('Linux::Pid');
        if ( -e '/proc/self/smaps' ) {
            $ok &= need_module('Linux::Smaps');
        }
    }
    elsif ( $Config{'osname'} =~ /(bsd|aix)/i ) {
        $ok &= need_module('BSD::Resource');
    }
    elsif ( $Config{'osname'} eq 'MSWin32' ) {
        $ok &= need_module('Win32::API');
    }

    $ok &= need_min_apache_version("2.0.48");

    eval { require mod_perl2; };
		$ok &= $mod_perl2::VERSION >= 1.99022 ? 1 : 0; ## 2.0.0-RC5+

    $ok &= need_min_module_version('Test::Builder' => '0.18_01');

    return $ok;
}

use strict;
use warnings FATAL => 'all';

use Config;
use Apache::Test;

# skip all tests in this directory unless mod_perl is enabled for 2.x series
plan tests => 1, \&my_need;

ok 1;

sub my_need {

    my $ok = 1;

    if ( $Config{'osname'} eq 'linux' ) {
        $ok = need_module('Linux::Pid');
        if ( -e '/proc/self/smaps' ) {
            $ok &= need_module('Linux::Smaps');
        }
    }
    elsif ( $Config{'osname'} =~ /(bsd|aix)/i ) {
        $ok &= need_module('BSD::Resource');
    }
    elsif ( $Config{'osname'} eq 'MSWin32' ) {
        $ok &= need_module('Win32::API');
    }

    $ok &= need_min_apache_version("2.0.48");

    eval { require mod_perl2; };
    $ok &= $mod_perl2::VERSION >= 1.99022 ? 1 : 0; ## 2.0.0-RC5+

    $ok &= need_min_module_version('Test::Builder' => '0.18_01');

    return $ok;
}

Remove a rather gross bit of tabbing.
Remove a rather gross bit of tabbing.


git-svn-id: a2f8787c271231bbc31d3fdaa09abf7426be5ca0@436772 13f79535-47bb-0310-9956-ffa450edef68
