diff options
author | Michael Widenius <monty@askmonty.org> | 2010-01-28 16:49:14 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-01-28 16:49:14 +0200 |
commit | a0417475678013914fb91c44be279b4107e3ffdb (patch) | |
tree | dfa2593758741f8d6b7ab0a0f2fd788099ea751a /client | |
parent | e926af9bf8d2b00c2c31a3741f65e3d5b846dffe (diff) | |
download | mariadb-git-a0417475678013914fb91c44be279b4107e3ffdb.tar.gz |
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
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc index bc5c4ed76b8..891dd72edfa 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -657,7 +657,9 @@ public: } while ((bytes= fread(buf, 1, sizeof(buf), m_file)) > 0) - fwrite(buf, 1, bytes, stderr); + if (fwrite(buf, 1, bytes, stderr)) + die("Failed to write to '%s', errno: %d", + m_file_name, errno); if (!lines) { |