mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
unit: fix bug in teddy model unit tests
This commit is contained in:
parent
01169e69d2
commit
38797abb06
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, Intel Corporation
|
* Copyright (c) 2015-2016, Intel Corporation
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@ -59,8 +59,8 @@ using namespace ue2;
|
|||||||
#define CHECK_WITH_TEDDY_OK_TO_FAIL(fdr, hint) \
|
#define CHECK_WITH_TEDDY_OK_TO_FAIL(fdr, hint) \
|
||||||
{ \
|
{ \
|
||||||
auto descr = getTeddyDescription(hint); \
|
auto descr = getTeddyDescription(hint); \
|
||||||
if (descr && fdr != nullptr) { \
|
if (descr && fdr == nullptr) { \
|
||||||
return; \
|
return; /* cannot build Teddy for this set of literals */ \
|
||||||
} else { \
|
} else { \
|
||||||
ASSERT_TRUE(fdr != nullptr); \
|
ASSERT_TRUE(fdr != nullptr); \
|
||||||
} \
|
} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user