mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 10:51:48 +02:00
*** empty log message ***
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package T;
|
||||
package Fetish;
|
||||
|
||||
require 5.003;
|
||||
use strict;
|
||||
@@ -8,7 +8,7 @@ use FileHandle;
|
||||
use File::Compare qw(compare);
|
||||
|
||||
@ISA = qw(Exporter);
|
||||
($VERSION = '$Revision: 1.1 $ ') =~ tr/[0-9].//cd;
|
||||
($VERSION = '$Revision: 1.2 $ ') =~ tr/[0-9].//cd;
|
||||
@EXPORT = qw (run_tests);
|
||||
|
||||
my @Types = qw (IN OUT ERR EXIT);
|
||||
@@ -45,6 +45,13 @@ my %Zero_one_type = map {$_ => 1} qw (OUT ERR EXIT);
|
||||
|
||||
my $Global_count = 1;
|
||||
|
||||
sub _shell_quote ($)
|
||||
{
|
||||
my ($string) = @_;
|
||||
$string =~ s/\'/\'\\\'\'/g;
|
||||
return "'$string'";
|
||||
}
|
||||
|
||||
sub _create_file ($$$$$)
|
||||
{
|
||||
my ($program_name, $test_name, $type, $file_name, $data) = @_;
|
||||
@@ -169,7 +176,7 @@ sub run_tests ($$$$$)
|
||||
$file_name, $contents);
|
||||
if ($type eq 'IN')
|
||||
{
|
||||
push @args, $file
|
||||
push @args, _shell_quote $file;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user