[memcached] bradfitz, r353: need -u root when running tests as root
    commits at code.sixapart.com 
    commits at code.sixapart.com
       
    Mon Sep  4 20:22:26 UTC 2006
    
    
  
need -u root when running tests as root
U   trunk/server/test/lib/MemcachedTest.pm
Modified: trunk/server/test/lib/MemcachedTest.pm
===================================================================
--- trunk/server/test/lib/MemcachedTest.pm	2006-09-04 10:41:36 UTC (rev 352)
+++ trunk/server/test/lib/MemcachedTest.pm	2006-09-04 20:22:26 UTC (rev 353)
@@ -60,6 +60,9 @@
     my $args = shift || "";
     my $port = free_port();
     $args .= " -p $port";
+    if ($< == 0) {
+	$args .= " -u root";
+    }
     my $childpid = fork();
 
     my $exe = "$Bin/../memcached";
    
    
More information about the memcached-commits
mailing list