2 # check that the filters are destroyed in the correct order by
3 # installing two different types of filter. If they don't get destroyed
4 # in the correct order we should get a "filter_del can only delete in
7 # skip this set of tests is running on anything less than 5.004_55
16 require "./filter-util.pl" ;
18 use vars qw( $Inc $Perl) ;
20 my $file = "tee.test" ;
25 writeFile("${module}.pm", <<EOM, <<'EOM') ;
29 use Filter::Util::Call ;
36 if (($status = filter_read()) > 0) {
53 writeFile($file, <<"EOM", $fil1) ;
54 use Filter::tee '>$tee1' ;
57 my $a = `$Perl $Inc $file 2>&1` ;
61 ok(1, ($? >> 8) == 0) ;
67 ok(3, $fil1 eq readFile($tee1)) ;
69 unlink $file or die "Cannot remove $file: $!\n" ;
70 unlink $tee1 or die "Cannot remove $tee1: $!\n" ;