You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/06/09 18:41:26 UTC
[celix] branch feature/pubsub_utils_test_fix updated: Updates the
timestamp print format
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/pubsub_utils_test_fix
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/pubsub_utils_test_fix by this push:
new 960a9d0 Updates the timestamp print format
960a9d0 is described below
commit 960a9d0f2fc99244de51f14c60978b7d10bef055
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Tue Jun 9 20:41:11 2020 +0200
Updates the timestamp print format
---
.../pubsub_utils/gtest/src/PubSubSerializationProviderTestSuite.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bundles/pubsub/pubsub_utils/gtest/src/PubSubSerializationProviderTestSuite.cc b/bundles/pubsub/pubsub_utils/gtest/src/PubSubSerializationProviderTestSuite.cc
index 0604f51..63979d7 100644
--- a/bundles/pubsub/pubsub_utils/gtest/src/PubSubSerializationProviderTestSuite.cc
+++ b/bundles/pubsub/pubsub_utils/gtest/src/PubSubSerializationProviderTestSuite.cc
@@ -34,7 +34,7 @@ public:
//Cannot reproduce this on host, so testing if a timestamp improves stability.
const auto t = std::chrono::system_clock::now();
char *cache = nullptr;
- asprintf(&cache, ".pubsub_serialization_provider_cache-%li", t.time_since_epoch().count());
+ asprintf(&cache, ".pubsub_serialization_provider_cache-%lli", (long long int)t.time_since_epoch().count());
celix_properties_set(props, OSGI_FRAMEWORK_FRAMEWORK_STORAGE, cache);
free(cache);