Skip to content

Commit

Permalink
Sigh. It's 2017 and yet here I am on a rainy Saturday afternoon fixin…
Browse files Browse the repository at this point in the history
…g LOG_TRACE code because we are not compiling in this mode in our pipeline
  • Loading branch information
apavlo committed Dec 23, 2017
1 parent 45509c0 commit 95f58eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions test/function/timestamp_functions_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ void DateTruncTestHelper(DatePartType part, std::string &date,
// Check that result is *not* null
EXPECT_NE(result, type::PELOTON_TIMESTAMP_NULL);
// Then check that it equals our expected value
LOG_TRACE("COMPARE: %s = %s\n", expected.ToString().c_str(),
result.ToString().c_str());
LOG_TRACE("COMPARE: %s = %" PRId64 "\n",
expected.c_str(),
static_cast<long>(result));
EXPECT_EQ(result, int_expected);
}

Expand Down
4 changes: 3 additions & 1 deletion test/type/boolean_value_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ TEST_F(BooleanValueTests, ComparisonTest) {
} // SWITCH
LOG_TRACE("%s %s %s => %d | %d\n", val0.ToString().c_str(),
ExpressionTypeToString(etype).c_str(),
val1.ToString().c_str(), expected, result);
val1.ToString().c_str(),
static_cast<int>(expected),
static_cast<int>(result));

if (expected_null) expected = false;

Expand Down
4 changes: 3 additions & 1 deletion test/type/date_value_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ TEST_F(DateValueTests, ComparisonTest) {
} // SWITCH
LOG_TRACE("%s %s %s => %d | %d\n", val0.ToString().c_str(),
ExpressionTypeToString(etype).c_str(),
val1.ToString().c_str(), expected, result);
val1.ToString().c_str(),
static_cast<int>(expected),
static_cast<int>(result));

if (expected_null) {
EXPECT_EQ(expected_null, result == type::CmpBool::NULL_);
Expand Down
2 changes: 1 addition & 1 deletion test/type/timestamp_value_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ TEST_F(TimestampValueTests, ComparisonTest) {
} // SWITCH
LOG_TRACE("%s %s %s => %d | %d\n", val0.ToString().c_str(),
ExpressionTypeToString(etype).c_str(),
val1.ToString().c_str(), expected, result);
val1.ToString().c_str(), expected, static_cast<int>(result));

if (expected_null) {
EXPECT_EQ(expected_null, result == type::CmpBool::NULL_);
Expand Down

0 comments on commit 95f58eb

Please sign in to comment.