Permalink
Browse files

Allow all tests to run as root

All the other tests did... just this one didn't. You really shouldn't build
this thing as root.
  • Loading branch information...
1 parent 1d1d149 commit 4538973592a4c59e520eedf9a4703a4c11c26d0a @dormando dormando committed Nov 10, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 t/issue_67.t
View
@@ -43,7 +43,9 @@ sub run_server {
my $childpid = fork();
- my $cmd = "$builddir/timedrun 10 $exe $args";
+ my $root = '';
+ $root = "-u root" if ($< == 0);
+ my $cmd = "$builddir/timedrun 10 $exe $root $args";
unless($childpid) {
exec $cmd;

0 comments on commit 4538973

Please sign in to comment.