#At file:///export/home/didrik/repo/trunk/ based on revid:jon.hauglid@stripped
3604 Tor Didriksen 2011-02-07
Bug #59632, post-push fix for unit test.
thd->thread_stack must point to the stack, not free-store.
Also: add an extra 'mysys' to the link command for SERVER_TESTS.
(it failed to link on debian)
modified:
unittest/gunit/CMakeLists.txt
unittest/gunit/item-t.cc
=== modified file 'unittest/gunit/CMakeLists.txt'
--- a/unittest/gunit/CMakeLists.txt 2011-02-01 07:52:46 +0000
+++ b/unittest/gunit/CMakeLists.txt 2011-02-07 13:03:47 +0000
@@ -239,7 +239,7 @@ FOREACH(test ${SERVER_TESTS})
ADD_EXECUTABLE(${test}-t ${test}-t.cc)
ENDIF()
TARGET_LINK_LIBRARIES(${test}-t sql binlog rpl master slave sql)
- TARGET_LINK_LIBRARIES(${test}-t gunit sqlgunitlib strings dbug regex)
+ TARGET_LINK_LIBRARIES(${test}-t gunit sqlgunitlib strings dbug regex mysys)
IF (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
SET_TARGET_PROPERTIES(${test}-t PROPERTIES LINK_FLAGS "-library=stlport4")
ENDIF()
=== modified file 'unittest/gunit/item-t.cc'
--- a/unittest/gunit/item-t.cc 2011-02-07 10:18:21 +0000
+++ b/unittest/gunit/item-t.cc 2011-02-07 13:03:47 +0000
@@ -53,7 +53,8 @@ protected:
virtual void SetUp()
{
m_thd= new THD(false);
- m_thd->thread_stack= (char*) &m_thd;
+ THD *stack_thd= m_thd;
+ m_thd->thread_stack= (char*) &stack_thd;
m_thd->store_globals();
}
Attachment: [text/bzr-bundle] bzr/tor.didriksen@oracle.com-20110207130347-lmjksir7xpbf3sth.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk branch (tor.didriksen:3604) Bug#59632 | Tor Didriksen | 7 Feb |