summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-08 14:32:55 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-08 14:32:55 +0000
commit659fb51c3fcc70af67fc81c5528c2700672063bc (patch)
tree0b07241d904954216507bf603d8b66f9b4b1696f
parent1f01d15689eebf8cac0437bd6198b0ee0e3a2c33 (diff)
downloadperl-659fb51c3fcc70af67fc81c5528c2700672063bc.tar.gz
The new test has some teething problems.
p4raw-id: //depot/perl@15105
-rw-r--r--MANIFEST1
-rw-r--r--ext/B/t/lint.t81
2 files changed, 0 insertions, 82 deletions
diff --git a/MANIFEST b/MANIFEST
index d4ab4aa3e3..1a7e8f5658 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -102,7 +102,6 @@ ext/B/t/bblock.t See if B::Bblock works
ext/B/t/concise.t See whether B::Concise works
ext/B/t/debug.t See if B::Debug works
ext/B/t/deparse.t See if B::Deparse works
-ext/B/t/lint.t See if B::Lint works
ext/B/t/showlex.t See if B::ShowLex works
ext/B/t/stash.t See if B::Stash works
ext/B/t/terse.t See if B::Terse works
diff --git a/ext/B/t/lint.t b/ext/B/t/lint.t
deleted file mode 100644
index f4209def33..0000000000
--- a/ext/B/t/lint.t
+++ /dev/null
@@ -1,81 +0,0 @@
-#!./perl -w
-
-BEGIN {
- chdir 't' if -d 't';
- @INC = qw(../lib);
- require './test.pl';
-}
-
-plan tests => 13;
-
-# Runs a separate perl interpreter with the appropriate lint options
-# turned on
-sub runlint ($$$;$) {
- my ($opts,$prog,$result,$testname) = @_;
- my $res = runperl(
- switches => [ "-MO=Lint,$opts" ],
- prog => $prog,
- stderr => 1,
- );
- $res =~ s/-e syntax OK\n$//;
- is( $res, $result, $testname || $opts );
-}
-
-runlint 'context', '$foo = @bar', <<'RESULT';
-Implicit scalar context for array in scalar assignment at -e line 1
-RESULT
-
-runlint 'context', '$foo = length @bar', <<'RESULT';
-Implicit scalar context for array in length at -e line 1
-RESULT
-
-runlint 'implicit-read', '/foo/', <<'RESULT';
-Implicit match on $_ at -e line 1
-RESULT
-
-runlint 'implicit-write', 's/foo/bar/', <<'RESULT';
-Implicit substitution on $_ at -e line 1
-RESULT
-
-runlint 'implicit-read', '1 for @ARGV', <<'RESULT', 'implicit-read in foreach';
-Implicit use of $_ in foreach at -e line 1
-RESULT
-
-runlint 'dollar-underscore', '$_ = 1', <<'RESULT';
-Use of $_ at -e line 1
-RESULT
-
-runlint 'dollar-underscore', 'print', <<'RESULT', 'dollar-underscore in print';
-Use of $_ at -e line 1
-RESULT
-
-runlint 'private-names', 'sub A::_f{};A::_f()', <<'RESULT';
-Illegal reference to private name _f at -e line 1
-RESULT
-
-runlint 'private-names', '$A::_x', <<'RESULT';
-Illegal reference to private name _x at -e line 1
-RESULT
-
-{
- local $TODO = q/doesn't catch methods/;
- runlint 'private-names', 'sub A::_f{};A->_f()', <<'RESULT',
-Illegal reference to private method name _f at -e line 1
-RESULT
- 'private-names';
-}
-
-runlint 'undefined-subs', 'foo()', <<'RESULT';
-Undefined subroutine foo called at -e line 1
-RESULT
-
-runlint 'regexp-variables', 'print $&', <<'RESULT';
-Use of regexp variable $& at -e line 1
-RESULT
-
-{
- local $TODO = 'bug';
- runlint 'regexp-variables', 's/./$&/', <<'RESULT';
-Use of regexp variable $& at -e line 1
-RESULT
-}