~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/t/drop-no_root.test

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This test uses chmod, can't be run with root permissions
 
2
--source include/not_as_root.inc
 
3
 
 
4
###########################################################################
 
5
 
 
6
--echo
 
7
--echo # --
 
8
--echo # -- Bug#26704: Failing DROP DATABASE brings mysql-client out of sync.
 
9
--echo # --
 
10
 
 
11
--echo
 
12
--disable_warnings
 
13
DROP DATABASE IF EXISTS mysql_test;
 
14
--enable_warnings
 
15
 
 
16
--echo
 
17
CREATE DATABASE mysql_test;
 
18
CREATE TABLE mysql_test.t1(c INT);
 
19
 
 
20
use mysql_test;
 
21
 
 
22
--echo
 
23
--echo chmod 000 mysql_test/t1.frm
 
24
--chmod 0000 $MYSQLTEST_VARDIR/master-data/mysql_test/t1.frm
 
25
 
 
26
# NOTE: ER_DB_DROP_RMDIR contains errno, which can be different on different
 
27
# platforms.
 
28
 
 
29
--echo
 
30
--disable_result_log
 
31
--error ER_DB_DROP_RMDIR
 
32
DROP DATABASE mysql_test;
 
33
--enable_result_log
 
34
 
 
35
--echo
 
36
SELECT DATABASE();
 
37
 
 
38
--echo
 
39
--echo rm mysql_test/t1.MYD mysql_test/t1.MYI
 
40
--exec rm $MYSQLTEST_VARDIR/master-data/mysql_test/t1.MYD
 
41
--exec rm $MYSQLTEST_VARDIR/master-data/mysql_test/t1.MYI
 
42
 
 
43
--echo
 
44
DROP DATABASE mysql_test;
 
45
 
 
46
--echo
 
47
use test;
 
48
 
 
49
--echo
 
50
--echo # -- End of Bug#26704.
 
51
 
 
52
###########################################################################