git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements to local interface IP addr detection. Fixes: #802
[exim.git]
/
test
/
runtest
diff --git
a/test/runtest
b/test/runtest
index aba2662920ece5b5394c84fae98fb8afd2a54480..d0caf0df3da4cc52105d826e7132a61ee0ccc35e 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-1,6
+1,6
@@
#! /usr/bin/perl -w
#! /usr/bin/perl -w
-# $Cambridge: exim/test/runtest,v 1.
27 2007/06/14 13:20:38 ph10
Exp $
+# $Cambridge: exim/test/runtest,v 1.
31 2009/10/14 11:34:57 nm4
Exp $
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
@@
-23,7
+23,7
@@
use Socket;
# Start by initializing some global variables
# Start by initializing some global variables
-$testversion = "4.
68 (16-Apr-07
)";
+$testversion = "4.
70 (14-Oct-09
)";
$cf = "bin/cf";
$cr = "\r";
$cf = "bin/cf";
$cr = "\r";
@@
-339,6
+339,9
@@
while(<IN>)
s/^\d+:error:/pppp:error:/;
s/:(?:\/[^\s:]+\/)?([^\/\s]+\.c):\d+:/:$1:dddd:/;
s/^\d+:error:/pppp:error:/;
s/:(?:\/[^\s:]+\/)?([^\/\s]+\.c):\d+:/:$1:dddd:/;
+ # There are differences in error messages between OpenSSL versions
+ s/SSL_CTX_set_cipher_list/SSL_connect/;
+
# One error test in expansions mentions base 62 or 36
s/is not a base (36|62) number/is not a base 36\/62 number/;
# One error test in expansions mentions base 62 or 36
s/is not a base (36|62) number/is not a base 36\/62 number/;
@@
-490,6
+493,12
@@
while(<IN>)
# ======== General uids, gids, and pids ========
# Note: this must come after munges for caller's and exim's uid/gid
# ======== General uids, gids, and pids ========
# Note: this must come after munges for caller's and exim's uid/gid
+ # These are for systems where long int is 64
+ s/\buid=4294967295/uid=-1/;
+ s/\beuid=4294967295/euid=-1/;
+ s/\bgid=4294967295/gid=-1/;
+ s/\begid=4294967295/egid=-1/;
+
s/\bgid=\d+/gid=gggg/;
s/\begid=\d+/egid=gggg/;
s/\bpid=\d+/pid=pppp/;
s/\bgid=\d+/gid=gggg/;
s/\begid=\d+/egid=gggg/;
s/\bpid=\d+/pid=pppp/;
@@
-903,7
+912,7
@@
if (! -e $sf)
print "\n";
print "------------ $f -----------\n"
if (defined $rf && -s $rf && defined $rsf && -s $rsf);
print "\n";
print "------------ $f -----------\n"
if (defined $rf && -s $rf && defined $rsf && -s $rsf);
- system("$more
$f
");
+ system("$more
'$f'
");
}
}
}
}
@@
-1017,7
+1026,7
@@
if (-e $sf)
# Do the comparison
# Do the comparison
- return 0 if (system("$cf
$mf $sf
>test-cf") == 0);
+ return 0 if (system("$cf
'$mf' '$sf'
>test-cf") == 0);
# Handle comparison failure
# Handle comparison failure
@@
-1037,7
+1046,7
@@
if (-e $sf)
# Update or delete the saved file, and give the appropriate return code.
if (-s $mf)
# Update or delete the saved file, and give the appropriate return code.
if (-s $mf)
- { tests_exit(-1, "Failed to cp $mf $sf") if system("cp
$mf $sf
") != 0; }
+ { tests_exit(-1, "Failed to cp $mf $sf") if system("cp
'$mf' '$sf'
") != 0; }
else
{ tests_exit(-1, "Failed to unlink $sf") if !unlink($sf); }
else
{ tests_exit(-1, "Failed to unlink $sf") if !unlink($sf); }