Skip to content

Commit 5b6b826

Browse files
committed
add a unit test - NOTE: this test fails
1 parent aec5513 commit 5b6b826

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#
2+
# MDEV-36269: Improve error handling for SOURCE command
3+
# Test that SOURCE on an existent directory returns a clear error
4+
#
5+
#
6+
# Try to SOURCE the /client directory (should fail)
7+
#
8+
ERROR: Failed to read from '/home/mohammad/open-source/mariaDB/server/client': it is a directory, or memory allocation failed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--echo #
2+
--echo # MDEV-36269: Improve error handling for SOURCE command
3+
--echo # Test that SOURCE on an existent directory returns a clear error
4+
--echo #
5+
6+
--echo #
7+
--echo # Try to SOURCE the /client directory (should fail)
8+
--echo #
9+
10+
--error 1
11+
--exec $MYSQL -e "source /home/mohammad/open-source/mariaDB/server/client"

0 commit comments

Comments
 (0)