diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-11-08 17:40:59 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-11-08 18:00:34 +0000 |
commit | 72acdf0f6393ed7c1dec410068549a1c7c60faa3 (patch) | |
tree | 736cd9bb892b0cb424d437fcf843ab99756bf451 /test/runtest | |
parent | 23f3dc67a13f71bb8fdf2930052d3fdce85e9774 (diff) |
Testsuite: fix fallout from TLS-by-default
Also handle testsuite run user different from testsuite files owner
Diffstat (limited to 'test/runtest')
-rwxr-xr-x | test/runtest | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/runtest b/test/runtest index 2ef749f33..be4c7b0fe 100755 --- a/test/runtest +++ b/test/runtest @@ -2458,8 +2458,13 @@ if ($parm_exim eq "") # deal with TRUSTED_CONFIG_LIST restrictions unlink("$parm_cwd/test-config") if -e "$parm_cwd/test-config"; -symlink("$parm_cwd/confs/0000", "$parm_cwd/test-config") - or die "Unable to link initial config into place: $!\n"; +open (IN, "$parm_cwd/confs/0000") || + tests_exit(-1, "Couldn't open $parm_cwd/confs/0000: $!\n"); +open (OUT, ">test-config") || + tests_exit(-1, "Couldn't open test-config: $!\n"); +while (<IN>) { print OUT; } +close(IN); +close(OUT); print("Probing with config file: $parm_cwd/test-config\n"); open(EXIMINFO, "$parm_exim -d -C $parm_cwd/test-config -DDIR=$parm_cwd " . |