unit: modernise test_util

This commit is contained in:
Justin Viiret
2017-03-01 16:55:24 +11:00
committed by Matthew Barr
parent 1376f3849a
commit bc7da2807a
2 changed files with 27 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2016, Intel Corporation
* Copyright (c) 2015-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -29,13 +29,13 @@
#ifndef TEST_UTIL_H
#define TEST_UTIL_H
#include "hs.h"
#include <cstring>
#include <iosfwd>
#include <string>
#include <vector>
#include "hs.h"
#ifndef UNUSED
#if defined(_WIN32) || defined(_WIN64)
#define UNUSED
@@ -56,8 +56,7 @@ struct MatchRecord {
std::ostream &operator<<(std::ostream &o, const MatchRecord &m);
struct CallBackContext {
CallBackContext() : halt(false) {}
bool halt;
bool halt = false;
std::vector<MatchRecord> matches;
void clear() {