require "./test.pl";
}
-plan tests => 34;
+plan tests => 36;
use_ok('Config');
ok( exists $Config{d_fork}, "still d_fork");
-package FakeOut;
+{
+ package FakeOut;
-sub TIEHANDLE {
- bless(\(my $text), $_[0]);
-}
+ sub TIEHANDLE {
+ bless(\(my $text), $_[0]);
+ }
-sub clear {
- ${ $_[0] } = '';
-}
+ sub clear {
+ ${ $_[0] } = '';
+ }
-sub PRINT {
- my $self = shift;
- $$self .= join('', @_);
+ sub PRINT {
+ my $self = shift;
+ $$self .= join('', @_);
+ }
}
+# Signal-related variables
+# (this is actually a regression test for Configure.)
+
+ok((split / /, $Config{sig_num}) == $Config{sig_size}, "sig_size");
+like($Config{sig_num}, qr/^[ \d]+\z/, "sig_num has only positive numbers");