Skip to content

Commit

Permalink
Merge branch 'hotfix/1.26.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
danovaro committed Jul 17, 2024
2 parents eeacdc8 + 91c29c3 commit 2aed19d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.26.3
1.26.4
4 changes: 2 additions & 2 deletions src/eckit/log/CodeLocation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ CodeLocation::operator bool() const {

void CodeLocation::print(std::ostream& os) const {
if (file_) {
os << " (" << file_ << " +" << line_;
if (func_ && ::strlen(func_)) {
os << " (" << file_ << ":" << line_;
if (func_ && ::strlen(func_) > 0) {
os << " " << func_;
}
os << ")";
Expand Down
8 changes: 4 additions & 4 deletions src/eckit/testing/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -453,20 +453,20 @@ int run_tests(int argc, char* argv[], bool initEckitMain = true) {
#define EXPECT_MSG(expr, msg_callback) \
do { \
if (!(expr)) { \
auto msg = msg_callback; \
msg(); \
auto _msg = msg_callback; \
_msg(); \
throw eckit::testing::TestException("Condition failed: " #expr, Here()); \
} \
} while (false)

#define EXPECT_EQUAL(a, b) \
EXPECT_MSG(a == b, [=]() { \
EXPECT_MSG(a == b, [&]() { \
std::cerr << eckit::Colour::red << "FAILED " << #a " == " << #b << " evaluated as [" << a << "] == [" << b \
<< "]" << eckit::Colour::reset << std::endl; \
};)

#define EXPECT_NOT_EQUAL(a, b) \
EXPECT_MSG(a != b, [=]() { \
EXPECT_MSG(a != b, [&]() { \
std::cerr << eckit::Colour::red << "FAILED " << #a " != " << #b << " evaluated as [" << a << "] != [" << b \
<< "]" << eckit::Colour::reset << std::endl; \
};)
Expand Down
1 change: 1 addition & 0 deletions src/eckit/thread/ThreadSingleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ThreadSingleton<T, A>::~ThreadSingleton() {
T* value = (T*)::pthread_getspecific(key_);
if (value) {
::pthread_key_delete(key_);
once_ = PTHREAD_ONCE_INIT;
delete value;
}
}
Expand Down

0 comments on commit 2aed19d

Please sign in to comment.