From: Heiko Schlittermann (HS12) Date: Wed, 27 May 2015 21:41:35 +0000 (+0200) Subject: Testsuite: Add $USER to env if missing X-Git-Tag: exim-4_86_RC1~6 X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/895ddecbf0ce674422032b88c4aa41c45c97186f Testsuite: Add $USER to env if missing --- diff --git a/test/runtest b/test/runtest index 157ff050a..c95e5a021 100755 --- a/test/runtest +++ b/test/runtest @@ -83,6 +83,10 @@ $parm_port_d4 = 1228; # Additional for daemon # Manually set locale $ENV{'LC_ALL'} = 'C'; +# In some environments USER does not exists, but we +# need it for some test(s) +$ENV{USER} = getpwuid($>) + if not exists $ENV{USER}; ###############################################################################