mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Persist test: Silence warning logs
This commit is contained in:
parent
7e5b7d02ca
commit
7a6af8e405
|
|
@ -20,6 +20,13 @@ uint32_t last_identifier;
|
|||
struct mosquitto_db db;
|
||||
|
||||
|
||||
static void dummy_vprintf(const char *fmt, va_list va)
|
||||
{
|
||||
UNUSED(fmt);
|
||||
UNUSED(va);
|
||||
}
|
||||
|
||||
|
||||
static void test_cleanup(void)
|
||||
{
|
||||
struct mosquitto *ctxt, *ctxt_tmp;
|
||||
|
|
@ -947,6 +954,8 @@ int main(int argc, char *argv[])
|
|||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
libcommon_vprintf = dummy_vprintf;
|
||||
|
||||
if(CU_initialize_registry() != CUE_SUCCESS){
|
||||
printf("Error initializing CUnit registry.\n");
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,13 @@ int last_qos;
|
|||
struct mosquitto_db db;
|
||||
|
||||
|
||||
static void dummy_vprintf(const char *fmt, va_list va)
|
||||
{
|
||||
UNUSED(fmt);
|
||||
UNUSED(va);
|
||||
}
|
||||
|
||||
|
||||
static void test_cleanup(void)
|
||||
{
|
||||
struct mosquitto *ctxt, *ctxt_tmp;
|
||||
|
|
@ -418,6 +425,8 @@ int main(int argc, char *argv[])
|
|||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
libcommon_vprintf = dummy_vprintf;
|
||||
|
||||
if(CU_initialize_registry() != CUE_SUCCESS){
|
||||
printf("Error initializing CUnit registry.\n");
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue