mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed compiler warnings & failing test cases
When compiling with debug, don't clear buffer in 'net_clear()' - This allows us to easier find bugs in the protocol and also get repeatable test failures in test cases where someone forgot to do --reap client/mysqltest.cc: Fixed compiler warning mysql-test/t/partition_innodb_semi_consistent.test: Added missing --reap (fixes random failure) sql/net_serv.cc: When compiling with debug, don't clear buffer in 'net_clear()' - This allows us to easier find bugs in the protocol and also get repeatable test failures in test cases where someone forgot to do --reap storage/myisam/ft_boolean_search.c: Fixed compiler warnings storage/myisam/ft_parser.c: Fixed compiler warnings storage/myisam/ft_stopwords.c: Fixed compiler warnings support-files/compiler_warnings.supp: Added a lot of new suppression of not relevant warnings and warnings in systems we are not in charge of unittest/mysys/waiting_threads-t.c: Fixed compiler warnings
This commit is contained in:
@ -258,7 +258,7 @@ void do_tests()
|
||||
#define test_kill_strategy(X) \
|
||||
diag("kill strategy: " #X); \
|
||||
DBUG_EXECUTE("reset_file", \
|
||||
{ rewind(DBUG_FILE); ftruncate(fileno(DBUG_FILE), 0); }); \
|
||||
{ rewind(DBUG_FILE); (void) ftruncate(fileno(DBUG_FILE), 0); }); \
|
||||
DBUG_PRINT("info", ("kill strategy: " #X)); \
|
||||
kill_strategy=X; \
|
||||
do_one_test();
|
||||
|
Reference in New Issue
Block a user