MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testdb_only.inc
1 #################### include/testdb_only.inc ######################
2 # #
3 # We must prevent to work on databases created by customers, #
4 # because we DROP/CREATE/MODIFY objects with sometimes common #
5 # names like STAFF, EMPLOYEE etc. #
6 # #
7 # Therefore we check the environment variable USE_RUNNING_SERVER. #
8 # USE_RUNNING_SERVER is exported by "mysql-test-run" and could #
9 # contain the following values: #
10 # 0 -- mysql-test-run was started without the --extern option #
11 # That means the test will be performed within the test #
12 # area 'mysql-test/var/...' . #
13 # 1 -- mysql-test-run was started with the --extern option #
14 # That means the test will be performed by an already #
15 # running server and data modifications will most probably #
16 # outside of the common test area 'mysql-test/var/...' . #
17 # #
18 # If USE_RUNNING_SERVER is not 0 the test will be skipped. #
19 # #
20 ###################################################################
21 
22 if ($USE_RUNNING_SERVER){
23  skip Not with extern server;
24 }