Navigation Menu

Skip to content

Commit

Permalink
test: Use "check_" prefix for just define variable include
Browse files Browse the repository at this point in the history
have_mariadb ->
check_mariadb

have_*.inc should determine whether skip or not.
  • Loading branch information
kou committed Nov 19, 2012
1 parent a585cb6 commit fc3eec8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -15,5 +15,5 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

--disable_query_log
let $have_mariadb = `SELECT LOCATE('MariaDB', @@global.version) > 0`;
let $mariadb = `SELECT LOCATE('MariaDB', @@global.version) > 0`;
--enable_query_log
6 changes: 3 additions & 3 deletions test/sql/include/have_fractional_seconds.inc
Expand Up @@ -14,14 +14,14 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

--source include/have_mariadb.inc
--source include/check_mariadb.inc
--source include/check_version.inc

if ($have_mariadb) {
if ($mariadb) {
let $fractional_seconds = 1;
}

if (!$have_mariadb) {
if (!$mariadb) {
if ($version_56) {
let $fractional_seconds = `SELECT @@global.version >= '5.6'`;
}
Expand Down

0 comments on commit fc3eec8

Please sign in to comment.