diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-07-18 16:17:40 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-07-18 16:17:40 +0200 |
commit | 6984151c61a85e10e93946f506b2f65b9dd9ec1b (patch) | |
tree | b3bdf1394ae22fcb04a2c63da9f22a20a48996a2 /unittest | |
parent | 42c934681970381a15aa1714822e65492bd51cc3 (diff) | |
parent | ec6769295de915ef2d4350b4ad51106d3b971874 (diff) | |
download | libnitrokey-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.cc | 2 |
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)); } |