Skip to content

Commit 0d22f72

Browse files
committed
Add global instance of null_message_handlert
1 parent 50d1c79 commit 0d22f72

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

unit/testing-utils/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
SRC = \
22
c_to_expr.cpp \
33
free_form_cmdline.cpp \
4+
message.cpp \
45
require_expr.cpp \
56
require_symbol.cpp \
67
run_test_with_compilers.cpp \

unit/testing-utils/message.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*******************************************************************\
2+
3+
Module: Unit test utilities
4+
5+
Author: Diffblue Ltd.
6+
7+
\*******************************************************************/
8+
9+
/// \file
10+
/// Global instance of `null_message_handlert`.
11+
12+
#include "message.h"
13+
14+
null_message_handlert null_message_handler;

unit/testing-utils/message.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*******************************************************************\
2+
3+
Module: Unit test utilities
4+
5+
Author: DiffBlue Limited. All rights reserved.
6+
7+
\*******************************************************************/
8+
9+
#ifndef CPROVER_TESTING_UTILS_MESSAGE_H
10+
#define CPROVER_TESTING_UTILS_MESSAGE_H
11+
12+
#include <util/message.h>
13+
14+
null_message_handlert extern null_message_handler;
15+
16+
#endif // CPROVER_TESTING_UTILS_MESSAGE_H

0 commit comments

Comments
 (0)