mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
b461c41cd3
- Skip tests using chmod when running as root mysql-test/t/information_schema_chmod.test: Use mysqltest builtin "chmode" mysql-test/t/mysqltest.test: Dont run as root - test chmod mysql-test/t/rpl_rotate_logs.test: Use mysqltest builtin "chmode" Use 'write_file' and 'chmod' instead of system mysql-test/t/trigger.test: Don't run as root Use 'write_file' and 'chmod' mysql-test/t/varbinary.test: Don't run as root
23 lines
826 B
Text
23 lines
826 B
Text
#
|
|
# Due to "Bug#18474 Unlistable directories yield no info from
|
|
# information_schema, part2" this test can't be run on Window with our
|
|
# current test framework. When "chmod -r" is done within cygwin the
|
|
# MySQL Server can still read the directory.
|
|
# Manual testing shows the functionalty to skip unlistable directories
|
|
# works on windows
|
|
#
|
|
--source include/not_windows.inc
|
|
|
|
# This test uses chmod, can't be run with root permissions
|
|
-- source include/not_as_root.inc
|
|
|
|
|
|
#
|
|
# Bug #15851 Unlistable directories yield no info from information_schema
|
|
#
|
|
create database mysqltest;
|
|
create table mysqltest.t1(a int);
|
|
chmod 0000 $MYSQLTEST_VARDIR/master-data/mysqltest;
|
|
select table_schema from information_schema.tables where table_schema='mysqltest';
|
|
exec chmod 0777 $MYSQLTEST_VARDIR/master-data/mysqltest;
|
|
drop database mysqltest;
|