Craig A. Berry [Mon, 18 Feb 2002 11:52:21 +0000 (05:52 -0600)]
From: "Craig A. Berry" <craigberry@mac.com>
Message-Id: <5.1.0.14.2.
20020218114540.01b2b458@exchi01>
p4raw-id: //depot/perl@14749
# alarm time might be one second less than you said.
is( $@, "ALARM!\n", 'alarm w/$SIG{ALRM} vs system()' );
-ok( abs($diff - 3) <= 1, ' right time' );
+{
+ local $TODO = 'Why does system() block alarm() on VMS?' if $^O eq 'VMS';
+ ok( abs($diff - 3) <= 1, " right time (waited $diff secs for 3-sec alarm)" );
+}
# ... while ($var = glob(...)) should test definedness not truth
-my $ok = "not ok 8\n";
-$ok = "ok 8\n" while my $var = glob("0");
-print $ok;
+if( $INC{'File/Glob.pm'} ) {
+ my $ok = "not ok 8\n";
+ $ok = "ok 8\n" while my $var = glob("0");
+ print $ok;
+}
+else {
+ print "ok 8 # skip: File::Glob emulated Unixism\n";
+}
+
# The formerly-broken test for the situation above would accidentally
# test definedness for an assignment with a LOGOP on the right: