From ae3c80c5777eeecdec9573d8881e3593fe33a11c Mon Sep 17 00:00:00 2001
From: Vladislav Vaintroub <wlad@montyprogram.com>
Date: Tue, 27 Dec 2011 17:54:04 +0100
Subject: [PATCH] disable threadpool threads in sys_var suite, when the suite
 runs with  embedded server

---
 .../suite/sys_vars/t/thread_pool_idle_timeout_basic.test       | 1 +
 mysql-test/suite/sys_vars/t/thread_pool_max_threads_basic.test | 2 +-
 mysql-test/suite/sys_vars/t/thread_pool_size_basic.test        | 3 ++-
 mysql-test/suite/sys_vars/t/thread_pool_stall_limit_basic.test | 1 +
 4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/mysql-test/suite/sys_vars/t/thread_pool_idle_timeout_basic.test b/mysql-test/suite/sys_vars/t/thread_pool_idle_timeout_basic.test
index 0f82213ddd6..4afcc0379f0 100644
--- a/mysql-test/suite/sys_vars/t/thread_pool_idle_timeout_basic.test
+++ b/mysql-test/suite/sys_vars/t/thread_pool_idle_timeout_basic.test
@@ -1,5 +1,6 @@
 # uint global
 --source include/not_windows.inc
+--source include/not_embedded.inc
 SET @start_global_value = @@global.thread_pool_idle_timeout;
 
 #
diff --git a/mysql-test/suite/sys_vars/t/thread_pool_max_threads_basic.test b/mysql-test/suite/sys_vars/t/thread_pool_max_threads_basic.test
index df5e25a9acd..3d5cd5f5198 100644
--- a/mysql-test/suite/sys_vars/t/thread_pool_max_threads_basic.test
+++ b/mysql-test/suite/sys_vars/t/thread_pool_max_threads_basic.test
@@ -1,5 +1,5 @@
 # uint global
-
+--source include/not_embedded.inc
 SET @start_global_value = @@global.thread_pool_max_threads;
 
 #
diff --git a/mysql-test/suite/sys_vars/t/thread_pool_size_basic.test b/mysql-test/suite/sys_vars/t/thread_pool_size_basic.test
index 94f0d4e8f10..eeed58956a4 100644
--- a/mysql-test/suite/sys_vars/t/thread_pool_size_basic.test
+++ b/mysql-test/suite/sys_vars/t/thread_pool_size_basic.test
@@ -1,11 +1,12 @@
 # uint global
 --source include/not_windows.inc
+--source include/not_embedded.inc
 SET @start_global_value = @@global.thread_pool_size;
 
 #
 # exists as global only
 #
---replace_column 2 #
+--replace_column 1 #
 select @@global.thread_pool_size;
 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
 select @@session.thread_pool_size;
diff --git a/mysql-test/suite/sys_vars/t/thread_pool_stall_limit_basic.test b/mysql-test/suite/sys_vars/t/thread_pool_stall_limit_basic.test
index d67c595369b..9b4e1df7ab0 100644
--- a/mysql-test/suite/sys_vars/t/thread_pool_stall_limit_basic.test
+++ b/mysql-test/suite/sys_vars/t/thread_pool_stall_limit_basic.test
@@ -1,5 +1,6 @@
 # uint global
 --source include/not_windows.inc
+--source include/not_embedded.inc
 SET @start_global_value = @@global.thread_pool_stall_limit;
 
 #
-- 
2.30.9