List:Commits« Previous MessageNext Message »
From:msvensson Date:May 23 2007 12:20pm
Subject:bk commit into 5.0 tree (msvensson:1.2497)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-05-23 12:20:11+02:00, msvensson@shellback.(none) +1 -0
  Merge shellback.(none):/home/msvensson/mysql/mysql-4.1-maint
  into  shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
  MERGE: 1.1616.2877.102

  mysql-test/mysql-test-run.pl@stripped, 2007-05-23 12:20:08+02:00,
msvensson@shellback.(none) +9 -12
    Merge 4.1 -> 5.0
    MERGE: 1.8.20.12

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	shellback.(none)
# Root:	/home/msvensson/mysql/mysql-5.0-maint/RESYNC

--- 1.221/mysql-test/mysql-test-run.pl	2007-05-23 12:20:18 +02:00
+++ 1.222/mysql-test/mysql-test-run.pl	2007-05-23 12:20:18 +02:00
@@ -2307,16 +2307,23 @@
     close FILE;
   }
 
-  chmod(oct("0755"), $test_file);
-  unlink($test_file);
+  # Some filesystems( for example CIFS) allows reading a file
+  # although mode was set to 0000, but in that case a stat on
+  # the file will not return 0000
+  my $file_mode= (stat($test_file))[2] & 07777;
 
   $ENV{'MYSQL_TEST_ROOT'}= "NO";
-  if ($result eq "MySQL")
+  mtr_verbose("result: $result, file_mode: $file_mode");
+  if ($result eq "MySQL" && $file_mode == 0)
   {
     mtr_warning("running this script as _root_ will cause some " .
                 "tests to be skipped");
     $ENV{'MYSQL_TEST_ROOT'}= "YES";
   }
+
+  chmod(oct("0755"), $test_file);
+  unlink($test_file);
+
 }
 
 
Thread
bk commit into 5.0 tree (msvensson:1.2497)msvensson23 May