In test-programs the ss...assert functions assert always.
Now handled by defining the relevant defines. Should be fixed by replacing the use of ss_info_assert with test macros that always assert. Task for fixing this properly: https://mariadb.atlassian.net/browse/MXS-382
This commit is contained in:
@ -27,6 +27,13 @@
|
|||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// To ensure that ss_info_assert asserts also when builing in non-debug mode.
|
||||||
|
#if !defined(SS_DEBUG)
|
||||||
|
#define SS_DEBUG
|
||||||
|
#endif
|
||||||
|
#if defined(NDEBUG)
|
||||||
|
#undef NDEBUG
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -27,6 +27,13 @@
|
|||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// To ensure that ss_info_assert asserts also when builing in non-debug mode.
|
||||||
|
#if !defined(SS_DEBUG)
|
||||||
|
#define SS_DEBUG
|
||||||
|
#endif
|
||||||
|
#if defined(NDEBUG)
|
||||||
|
#undef NDEBUG
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -27,6 +27,13 @@
|
|||||||
* @endverbatim
|
* @endverbatim
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// To ensure that ss_info_assert asserts also when builing in non-debug mode.
|
||||||
|
#if !defined(SS_DEBUG)
|
||||||
|
#define SS_DEBUG
|
||||||
|
#endif
|
||||||
|
#if defined(NDEBUG)
|
||||||
|
#undef NDEBUG
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Reference in New Issue
Block a user