Reduce debug unit tests runtime even more

In single.cpp featuremask with AVX512 features is not relevant to non-x86 platforms,
and just extends the runtime for no reason.
This commit is contained in:
Konstantinos Margaritis
2023-10-05 19:12:38 +03:00
parent e369681ce2
commit 22a24f12ea
4 changed files with 169 additions and 0 deletions

View File

@@ -239,6 +239,8 @@ TEST_P(BadPattern, Block) {
const BadPatternParam &p = GetParam();
SCOPED_TRACE(p.expr);
std::cout << p.expr << std::endl;
hs_compile_error_t *compile_err;
hs_database_t *db;
hs_error_t err = p.compile(HS_MODE_NOSTREAM, &db, &compile_err);
@@ -280,7 +282,11 @@ TEST_P(BadPattern, Stream) {
static
vector<BadPatternParam> getBadPatterns() {
#ifdef NDEBUG
string filename = "unit/hyperscan/bad_patterns.txt";
#else
string filename = "unit/hyperscan/bad_patterns_fast.txt";
#endif
ifstream f;
f.open(filename.c_str(), ifstream::in);