-package T;
+package Fetish;
require 5.003;
use strict;
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);
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) = @_;
$file_name, $contents);
if ($type eq 'IN')
{
- push @args, $file
+ push @args, _shell_quote $file;
}
else
{