aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-07-18 16:17:40 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-07-18 16:17:40 +0200
commit6984151c61a85e10e93946f506b2f65b9dd9ec1b (patch)
treeb3bdf1394ae22fcb04a2c63da9f22a20a48996a2 /unittest
parent42c934681970381a15aa1714822e65492bd51cc3 (diff)
parentec6769295de915ef2d4350b4ad51106d3b971874 (diff)
downloadlibnitrokey-6984151c61a85e10e93946f506b2f65b9dd9ec1b.tar.gz
libnitrokey-6984151c61a85e10e93946f506b2f65b9dd9ec1b.tar.bz2
Merge branch 'pr_130'
Meson: copy udev, fallback for git version. Fixes #130
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_offline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 92af78c..3f79fa8 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -179,7 +179,7 @@ TEST_CASE("Test version getter", "[fast]") {
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]+");
- std::regex pattern(version + "(" + git_suffix + "|)");
+ std::regex pattern(version + "(" + git_suffix + ")?");
REQUIRE(std::regex_match(s, pattern));
}