Skip to content

Commit

Permalink
Merge 5a1a556 into 24ecb46
Browse files Browse the repository at this point in the history
  • Loading branch information
basvodde committed May 19, 2020
2 parents 24ecb46 + 5a1a556 commit f3eb6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/CppUTest/UtestMacros.h
Expand Up @@ -102,10 +102,10 @@
CHECK_TRUE_LOCATION(condition, "CHECK", #condition, NULLPTR, __FILE__, __LINE__)

#define CHECK_TEXT(condition, text) \
CHECK_TRUE_LOCATION(condition, "CHECK", #condition, text, __FILE__, __LINE__)
CHECK_TRUE_LOCATION((bool)(condition), "CHECK", #condition, text, __FILE__, __LINE__)

#define CHECK_TRUE(condition)\
CHECK_TRUE_LOCATION(condition, "CHECK_TRUE", #condition, NULLPTR, __FILE__, __LINE__)
CHECK_TRUE_LOCATION((bool) (condition), "CHECK_TRUE", #condition, NULLPTR, __FILE__, __LINE__)

#define CHECK_TRUE_TEXT(condition, text)\
CHECK_TRUE_LOCATION(condition, "CHECK_TRUE", #condition, text, __FILE__, __LINE__)
Expand Down
4 changes: 2 additions & 2 deletions tests/CppUTest/CompatabilityTests.cpp
Expand Up @@ -9,7 +9,7 @@ TEST_GROUP(StandardCppLibrary)
{
};

#if defined(__cplusplus) && __cplusplus >= 201103L && 0
#if defined(__cplusplus) && __cplusplus >= 201103L

TEST(StandardCppLibrary, UniquePtrConversationToBool)
{
Expand All @@ -18,7 +18,7 @@ TEST(StandardCppLibrary, UniquePtrConversationToBool)

auto const notNull = std::make_unique<int>(1);
CHECK_TRUE(notNull);
};
}

#endif

Expand Down

0 comments on commit f3eb6a1

Please sign in to comment.