summaryrefslogtreecommitdiff
path: root/unittest
Commit message (Collapse)AuthorAgeFilesLines
* WL#5665: Removal of the autotools-based build systemDavi Arnaut2010-11-206-160/+0
| | | | | | | | | | | | | | | | | | | | | The autotools-based build system has been superseded and is being removed in order to ease the maintenance burden on developers tweaking and maintaining the build system. In order to support tools that need to extract the server version, a new file that (only) contains the server version, called VERSION, is introduced. The file contents are human and machine-readable. The format is: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA=-rc The CMake based version extraction in cmake/mysql_version.cmake is changed to extract the version from this file. The configure to CMake wrapper is retained for backwards compatibility and to support the BUILD/ scripts. Also, a new a makefile target show-dist-name that prints the server version is introduced.
* merge from 5.5-mtrBjorn Munch2010-11-191-4/+28
|\
| * Pull in fix from bug#47526 to solve bug#50047.Jonathan Perkin2010-10-141-4/+28
| |\
| | * Bug#47526 unit.pl fails to execute binaries when using Test::Harness 3.10Magnus Blåudd2010-01-041-3/+34
| | | | | | | | | | | | | | | - Rewrite unit.pl so it prefers to use TAP::Harness directly. - Also add support for --verbose --noverbose
* | | Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.Davi Arnaut2010-10-206-15/+43
|\ \ \ | |/ / |/| |
| * | Bug#45288: pb2 returns a lot of compilation warningsDavi Arnaut2010-10-206-15/+43
| | | | | | | | | Fix assorted compiler warnings.
* | | mergeGeorgi Kodinov2010-10-041-1/+10
|\ \ \
| * | | Fix for Bug#54478 "mysqld crashes during boot when running mtr with --debug ↵Olav Sandstaa2010-09-151-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | option" The crash during boot was caused by a DBUG_PRINT statement in fill_schema_schemata() (in sql_show.cc). This DBUG_PRINT statement contained several instances of %s in the format string and for one of these we gave a NULL pointer as the argument. This caused the call to vsnprintf() to crash when running on Solaris. The fix for this problem is to replace the call to vsnprintf() with my_vsnprintf() which handles that a NULL pointer is passed as argumens for %s. This patch also extends my_vsnprintf() to support %i in the format string.
* | | | merged mysql-5.5 into WL1054-5.5Georgi Kodinov2010-08-163-8/+6
|\ \ \ \ | |/ / /
| * | | Patch for Bug#55854 (MySQL AB should not be AUTHOR, copyright incorrect).Alexander Nozdrin2010-08-123-8/+6
| | | | | | | | | | | | Fixing copyright text.
* | | | Fixed a build error on solaris sparc in the mysql-5.5-wl1054 treeGeorgi Kodinov2010-08-101-1/+1
|/ / /
* | | Auto-merge from mysql-trunk-merge.Alexander Nozdrin2010-07-293-2/+143
|\ \ \
| * \ \ Merge mysql-5.1-bugteam -> mysql-trunk-mergeVasil Dimov2010-07-291-3/+3
| |\ \ \ | | |/ /
| | * | Postfix for BUG#45012.Alexander Barkov2010-07-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The original patch didn't compile on debug_werror due to wrong format in printf("%d") for size_t variables. Fix: Adding cast to (int).
| * | | Merging from mysql-5.1-bugteamAlexander Barkov2010-07-263-2/+143
| |\ \ \ | | |/ /
| | * | Bug#45012 my_like_range_cp932 generates invalid stringAlexander Barkov2010-07-263-2/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The functions my_like_range_xxx() returned badly formed maximum strings for Asian character sets, which made problems for storage engines. Fix: - Removed a number my_like_range_xxx() implementations, which were in fact dumplicate code pieces. - Using generic my_like_range_mb() instead. - Setting max_sort_char member properly for Asian character sets - Adding unittest/strings/strings-t.c, to test that my_like_range_xxx() return well-formed min and max strings. Notes: - No additional tests in mysql/t/ available. Old tests cover the affected code well enough.
| | * | Bug#22320: my_atomic-t unit test failsDavi Arnaut2010-07-052-212/+0
| | | | | | | | | | | | | | | | | | | | The atomic operations implementation on 5.1 has a few problems, which might cause tests to abort randomly. Since no code in 5.1 uses atomic operations, simply remove the code.
* | | | WL#5498: Remove dead and unused source codeDavi Arnaut2010-07-231-3/+3
| | | | | | | | | | | | Remove Windows related files which aren't used anymore.
* | | | Bug#22320: my_atomic-t unit test failsDavi Arnaut2010-07-231-13/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#52261: 64 bit atomic operations do not work on Solaris i386 gcc in debug compilation One of the various problems was that the source operand to CMPXCHG8b was marked as a input/output operand, causing GCC to use the EBX register as the destination register for the CMPXCHG8b instruction. This could lead to crashes as the EBX register is also implicitly used by the instruction, causing the value to be potentially garbaged and a protection fault once the value is used to access a position in memory. Another problem was the lack of proper clobbers for the atomic operations and, also, a discrepancy between the implementations for the Compare and Set operation. The specific problems are described and fixed by Kristian Nielsen patches: Patch: 1 Fix bugs in my_atomic_cas*(val,cmp,new) that *cmp is accessed after CAS succeds. In the gcc builtin implementation, problem was that *cmp was read again after atomic CAS to check if old *val == *cmp; this fails if CAS is successful and another thread modifies *cmp in-between. In the x86-gcc implementation, problem was that *cmp was set also in the case of successful CAS; this means there is a window where it can clobber a value written by another thread after successful CAS. Patch 2: Add a GCC asm "memory" clobber to primitives that imply a memory barrier. This signifies to GCC that any potentially aliased memory must be flushed before the operation, and re-read after the operation, so that read or modification in other threads of such memory values will work as intended. In effect, it makes these primitives work as memory barriers for the compiler as well as the CPU. This is better and more correct than adding "volatile" to variables.
* | | Bug#34043: Server loops excessively in _checkchunk() when safemalloc is enabledDavi Arnaut2010-07-083-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Essentially, the problem is that safemalloc is excruciatingly slow as it checks all allocated blocks for overrun at each memory management primitive, yielding a almost exponential slowdown for the memory management functions (malloc, realloc, free). The overrun check basically consists of verifying some bytes of a block for certain magic keys, which catches some simple forms of overrun. Another minor problem is violation of aliasing rules and that its own internal list of blocks is prone to corruption. Another issue with safemalloc is rather the maintenance cost as the tool has a significant impact on the server code. Given the magnitude of memory debuggers available nowadays, especially those that are provided with the platform malloc implementation, maintenance of a in-house and largely obsolete memory debugger becomes a burden that is not worth the effort due to its slowness and lack of support for detecting more common forms of heap corruption. Since there are third-party tools that can provide the same functionality at a lower or comparable performance cost, the solution is to simply remove safemalloc. Third-party tools can provide the same functionality at a lower or comparable performance cost. The removal of safemalloc also allows a simplification of the malloc wrappers, removing quite a bit of kludge: redefinition of my_malloc, my_free and the removal of the unused second argument of my_free. Since free() always check whether the supplied pointer is null, redudant checks are also removed. Also, this patch adds unit testing for my_malloc and moves my_realloc implementation into the same file as the other memory allocation primitives.
* | | Merge fix for Bug#53303 from 5.1-bugteamTor Didriksen2010-06-104-11/+23
|\ \ \ | |/ / | | | | | | text conflict: unittest/examples/Makefile.am
| * | Backport of Bug#53303 mytap tests should always have a plan()Tor Didriksen2010-06-104-14/+26
| |/ | | | | | | | | | | | | The bug was caused by buffered output. Flushing resolved it. We still recommend to allways call plan(). Also fix some compile warnings (formal parameter different from declaration)
* | Another incarnation of the patch for Bug#30708Alexander Nozdrin2010-05-193-9/+0
| | | | | | | | | | | | | | | | | | (make relies GNU extentions). The patch was partially backport from 6.0. Original comment: bug#30708: make relies GNU extensions. Now that we no longer use BitKeeper we can safely remove the SCCS handling with no loss of functionality.
* | mergeVladislav Vaintroub2009-12-251-4/+19
|\ \
| * \ Manual merge of WL#4738 from mysql-next-mr: Alexey Kopytov2009-12-281-4/+19
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - backported code that handles %f/%g arguments in my_vsnprintf.c from 6.0 - backported %f/%g tests in unittest/mysys/my_vsnprintf-t.c from 6.0 - replaced snprintf("%g") in sql/set_var.cc with my_gcvt() - removed unnecessary "--replace-result"s for Windows in mysql-test/suite/sys_vars/t/long_query_time_basic.test - some test results adjustments
| | * | WL#4738 streamline/simplify @@variable creation processSergei Golubchik2009-12-221-1/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
* | | mergeVladislav Vaintroub2009-12-191-1/+38
|\ \ \ | |/ /
| * | Merge WL#5138 to mysql-next-mrMikael Ronstrom2009-11-2714-23/+594
| |\ \
| * \ \ WL#5138 merged to mysql-next-mrMikael Ronstrom2009-11-203-107/+179
| |\ \ \
| | * | | Bug fixes to my_atomic infrastructureMikael Ronstrom2009-10-151-0/+2
| | | | |
| | * | | Backported my_atomic from 6.0-codebase and added support for 64-bit atomics ↵Mikael Ronstrom2009-10-122-107/+177
| | | | | | | | | | | | | | | | | | | | to enable removal of LOCK_thread_count from every query, removed LOCK_thread_count from use in dispatch_command and close of query which is used in every query, now uses atomic increments/decrements instead
* | | | | mergeVladislav Vaintroub2009-11-303-6/+232
|\ \ \ \ \ | | |_|/ / | |/| | |
| * | | | WL#2373 Use cycle counter for timingMarc Alff2009-11-243-3/+266
| | | | |
* | | | | Remove STATIC from ADD_CONVENIENCE_LIBRARY on 2 placesVladislav Vaintroub2009-11-251-1/+1
| | | | |
* | | | | mergeVladislav Vaintroub2009-11-2514-133/+447
|\ \ \ \ \ | |/ / / /
| * | | | Port the unit test framework to windowsMarc Alff2009-11-1710-20/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport from 6.0.14 to 5.6.0 Original code from Guilhem Bichot
| * | | | WL#3230 concurrent hashMarc Alff2009-11-172-1/+179
| | | | | | | | | | | | | | | | | | | | | | | | | Backport from 6.0.14 to 5.6.0 Original code from Sergei Golubchik
| * | | | WL#2595 kernel-independent atomic operationsMarc Alff2009-11-173-107/+142
| |/ / / | | | | | | | | | | | | | | | | Backport from 6.0.14 to 5.6.0 Original code from Sergei Golubchik
* | | | WL#5161 : Cross-platform build with CMakeVladislav Vaintroub2009-11-095-3/+63
|/ / /
* | | unit tests for my_vsnprintf,Sergei Golubchik2009-11-042-1/+156
| |/ |/| | | bug fixes for my_vsnprintf
* | automergeGeorgi Kodinov2009-10-041-2/+9
|\ \
| * | Fix bug#46980Joerg Bruehe2009-09-171-2/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Option "--without-server" still not working in 5.1 The general approach is to make sure that source files which require thread support are only compiled if the build really needs thread support, which means when the server is built or a thread-safe client library. This required several changes: - Make sure the subdirectories "storage/" and "plugin/" are only processed if the server is built, not ifclient-only. - Make the compilation of some modules which inherently require threading depend on thread supportin the build. - Separate the handling of threading in "configure.in" from that of server issues, threading is also needed in a non-server build of a thread-safe client library. Also, "libdbug" must get built even in a client-only build, so "dbug/" must be in the list of client directories. In addition, calls to thread functions in source files which can be built without thread support must use the wrapper functions which handle the non-threaded build. So the modules "client/mysqlimport.c" and "client/mysqlslap.c" must call "my_thread_end()" only via "mysql_thread_end()".
* | Bug #43414 Parenthesis (and other) warnings compiling MySQLStaale Smedseng2009-09-231-1/+1
|/ | | | | | with gcc 4.3.2 Cleaning up warnings not present in 5.0.
* Fix for server bug experienced in Maria (wrong "Truncated incorrect <var_name>guilhem@gbichot4.local2008-02-181-11/+11
| | | | | | | | value" error even though the value was correct): a C function in my_getopt.c was taking bool* in parameter and was called from C++ sql_plugin.cc, but on some Mac OS X sizeof(bool) is 1 in C and 4 in C++, giving funny mismatches. Fixed, all other occurences of bool in C are removed, future ones are blocked by a "C-bool-catcher" in my_global.h (use my_bool).
* my_atomic-t.c:serg@janus.mylan2007-12-201-2/+9
| | | | gcc bug workaround
* Fixes Bug#30127: --debug-info no longer prints memory usage in mysqlmonty@mysql.com/nosik.monty.fi2007-08-013-5/+9
| | | | | | | Fixed compiler warnings, errors and link errors Fixed new bug on Solaris with gethrtime() Added --debug-check option to all mysql clients to print errors and memory leaks Added --debug-info to all clients. This now works as --debug-check but also prints memory and cpu usage
* Makefile.am:kent@mysql.com/kent-amd64.(none)2007-05-285-0/+12
| | | | | Consistent use of '%::SCCS/s.%' to prevent some 'make' implementations from trying to update files in SCCS directory
* remove unnecessary lineserg@janus.mylan2007-03-161-3/+0
|
* base64-t.c:kent/mysqldev@mysql.com/production.mysql.com2007-02-211-1/+6
| | | | | Calculate and output line count first to be compatible with older versions of Test::Harness
* After merge fixistruewing@chilla.local2007-02-021-0/+2
|