1#!/usr/bin/perl
2  (-d "../t") and chdir "..";
3  system("sudo", "-n", "$^X", "-T", "t/root_spamd_x_paranoid.t",
4        "--override", "run_root_tests", "1", @ARGV);
5  ($? >> 8 == 0) or die "exec failed";
6
7  my $uid = (stat("t"))[4];
8  system("sudo -n chown -R $uid t/log") if $uid;
9
10