subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1308299 - /subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t
Date Mon, 02 Apr 2012 11:06:50 GMT
Author: stsp
Date: Mon Apr  2 11:06:50 2012
New Revision: 1308299

URL: http://svn.apache.org/viewvc?rev=1308299&view=rev
Log:
* subversion/bindings/swig/perl/native/t/3client.t: Try getwpuid() before
   getlogin() because the former gives the expected result even if tests
   are run after su(1). Should resolve spurious failures on the OpenBSD
   buildbot.

Suggested by: philip

Modified:
    subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t

Modified: subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t?rev=1308299&r1=1308298&r2=1308299&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t (original)
+++ subversion/trunk/subversion/bindings/swig/perl/native/t/3client.t Mon Apr  2 11:06:50
2012
@@ -58,7 +58,7 @@ my $current_rev = 0;
 $SVN::Error::handler = undef;
 
 # Get username we are running as
-my $username = getlogin() || getpwuid($>);
+my $username = getpwuid($>) || getlogin();
 
 # This is ugly to create the test repo with SVN::Repos, but
 # it seems to be the most reliable way.



Mime
View raw message