Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
06570d97
Commit
06570d97
authored
May 23, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b28509/b28509.5.0
parents
e6f1c2dd
ce473a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+10
-3
No files found.
mysql-test/mysql-test-run.pl
View file @
06570d97
...
...
@@ -2307,16 +2307,23 @@ sub check_running_as_root () {
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment