From 38797abb066fe083ca0d4e900d46697e7cd2388c Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Fri, 6 May 2016 11:32:36 +1000 Subject: [PATCH] unit: fix bug in teddy model unit tests --- unit/internal/fdr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unit/internal/fdr.cpp b/unit/internal/fdr.cpp index 3aada867..d10c25f0 100644 --- a/unit/internal/fdr.cpp +++ b/unit/internal/fdr.cpp @@ -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 * 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) \ { \ auto descr = getTeddyDescription(hint); \ - if (descr && fdr != nullptr) { \ - return; \ + if (descr && fdr == nullptr) { \ + return; /* cannot build Teddy for this set of literals */ \ } else { \ ASSERT_TRUE(fdr != nullptr); \ } \