blob: 34b7d675155e9d7ed2a6a9268590e908ba8e00be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdarg.h>
#include <stdio.h>
#include "test_util.hpp"
using namespace std;
std::vector<TestErrMsg> TestErrMsgMgr::_errMsg;
void
test_printf(const char* format, ...)
{
va_list args;
va_start (args, format);
FILE* devNull = fopen("/dev/null", "w");
if (devNull != 0) {
(void)vfprintf (devNull, format, args);
}
fclose(devNull);
va_end (args);
}
|