From 539aec53df80bb5f5893614ca76a6a2821c20bc2 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Wed, 2 Jan 2019 13:35:01 +0100 Subject: Mention potential test failure cause, when no git version is provided Related to #133 Signed-off-by: Szczepan Zalega --- unittest/test_offline.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc index 75bd316..279c38f 100644 --- a/unittest/test_offline.cc +++ b/unittest/test_offline.cc @@ -176,6 +176,7 @@ TEST_CASE("Test version getter", "[fast]") { // of commits since the last tag, and is the hash of the current // commit. (This assumes that all tags have the name v..). // Optional field is allowed as well. + INFO("This test will fail, if the full git commit version was not collected during library build."); std::string s = library_version; std::string version("v[0-9]+\\.[0-9]+(\\.[0-9]+)?"); std::string git_suffix("-[0-9]+-g[0-9a-z]+"); -- cgit v1.2.3