mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
- Add test case(execute perror) - Check if strerror has returned NULL and set msg to "Unknown Error" in that case - Thanks to Steven Xie for pointing out how to fix. extra/perror.c: strerror might return NULL on Solaris 2.8 mysql-test/mysql-test-run.pl: Add possibility to execute perror from test case mysql-test/r/have_perror.require: New BitKeeper file ``mysql-test/r/have_perror.require'' mysql-test/r/perror.result: New BitKeeper file ``mysql-test/r/perror.result'' mysql-test/t/perror.test: New BitKeeper file ``mysql-test/t/perror.test''
12 lines
224 B
Plaintext
12 lines
224 B
Plaintext
#
|
|
# Check if the variable MY_PERROR is set
|
|
#
|
|
--require r/have_perror.require
|
|
disable_query_log;
|
|
eval select LENGTH("$MY_PERROR") > 0 as "have_perror";
|
|
enable_query_log;
|
|
|
|
--exec $MY_PERROR 150
|
|
--exec $MY_PERROR --silent 120
|
|
|