From: Date: May 23 2007 12:15pm Subject: bk commit into 4.1 tree (msvensson:1.2658) List-Archive: http://lists.mysql.com/commits/27197 Message-Id: <20070523101530.213218600AF@shellback.localdomain> Below is the list of changes that have just been committed into a local 4.1 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:15:25+02:00, msvensson@shellback.(none) +1 -0 Merge bk-internal:/home/bk/mysql-4.1-maint into shellback.(none):/home/msvensson/mysql/mysql-4.1-maint MERGE: 1.2586.35.2 mysql-test/mysql-test-run.pl@stripped, 2007-05-23 12:15:08+02:00, msvensson@shellback.(none) +0 -0 Auto merged MERGE: 1.172.1.1 # 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-4.1-maint/RESYNC --- 1.182/mysql-test/mysql-test-run.pl 2007-05-23 12:15:30 +02:00 +++ 1.183/mysql-test/mysql-test-run.pl 2007-05-23 12:15:30 +02:00 @@ -2143,16 +2143,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); + }