summaryrefslogtreecommitdiff
path: root/mysql-test/main/flush_logs_not_windows.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-05-19 20:55:37 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-05-19 20:55:37 +0200
commitc07325f932abef2032b2e56532f6cb615e2a1161 (patch)
tree754ca158e45ebc014e5cbeaf4c3e7581f9575d76 /mysql-test/main/flush_logs_not_windows.test
parent7f8187bc432f79afe4c0549d68845a68e6c159ab (diff)
parent2ae83affef5a4d89f38272db31a400f968279a7a (diff)
downloadmariadb-git-c07325f932abef2032b2e56532f6cb615e2a1161.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'mysql-test/main/flush_logs_not_windows.test')
-rw-r--r--mysql-test/main/flush_logs_not_windows.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/flush_logs_not_windows.test b/mysql-test/main/flush_logs_not_windows.test
new file mode 100644
index 00000000000..af50e4bb9e8
--- /dev/null
+++ b/mysql-test/main/flush_logs_not_windows.test
@@ -0,0 +1,13 @@
+source include/not_windows.inc;
+source include/not_embedded.inc;
+#
+# MDEV-17710 "unknown error" with FLUSH LOGS if log directory is not writeable
+#
+move_file $MYSQLTEST_VARDIR/log/mysqld.1.err $MYSQLTEST_VARDIR/log/mysqld.1.err-bak;
+system chmod u-w $MYSQLTEST_VARDIR/log;
+replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR;
+error ER_CANT_CREATE_FILE;
+flush logs;
+system chmod u+w $MYSQLTEST_VARDIR/log;
+move_file $MYSQLTEST_VARDIR/log/mysqld.1.err-bak $MYSQLTEST_VARDIR/log/mysqld.1.err;
+flush logs;