mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Added purecov comment for new, not executed code for my recent changeset
(Found by dgcov) mysql-test/r/show_check.result: Test SHOW PLUGIN. (Was not covered by test suite before) mysql-test/t/show_check.test: Test SHOW PLUGIN. (Was not covered by test suite before) mysys/my_handler.c: Added purecov comment for new, not executed code sql/filesort.cc: Added purecov comment for new, not executed code Removed 'purecov: inspected' from code covered by current testsuite sql/ha_ndbcluster_binlog.cc: Added purecov comment for new, not executed code sql/log_event.cc: Added purecov comment for new, not executed code sql/mysqld.cc: Added purecov comment for new, not executed code sql/sql_parse.cc: Added purecov comment for new, not executed code
This commit is contained in:
parent
caf21245cc
commit
5df928c8e6
8 changed files with 38 additions and 4 deletions
|
|
@ -688,9 +688,17 @@ static void make_sortkey(register SORTPARAM *param,
|
|||
bzero((char*) to-1,sort_field->length+1);
|
||||
else
|
||||
{
|
||||
/* purecov: begin deadcode */
|
||||
/*
|
||||
This should only happen during extreme conditions if we run out
|
||||
of memory or have an item marked not null when it can be null.
|
||||
This code is here mainly to avoid a hard crash in this case.
|
||||
*/
|
||||
DBUG_ASSERT(0);
|
||||
DBUG_PRINT("warning",
|
||||
("Got null on something that shouldn't be null"));
|
||||
bzero((char*) to,sort_field->length); // Avoid crash
|
||||
/* purecov: end */
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -699,7 +707,7 @@ static void make_sortkey(register SORTPARAM *param,
|
|||
diff=(int) (sort_field_length - length);
|
||||
if (diff < 0)
|
||||
{
|
||||
diff=0; /* purecov: inspected */
|
||||
diff=0;
|
||||
length= sort_field_length;
|
||||
}
|
||||
if (sort_field->suffix_length)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue