From 9c8d94eb59f0f942cec44643361c8d308dbeeb39 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 22 Oct 2024 10:56:02 +0200 Subject: [PATCH] bindings: glib: tests: fix version regex Bring the version matching regex pattern in line with the others in the tree so that it can also match a string without -rcX or -devel suffix. Fixes: e090088c21b7 ("bindings: add GLib bindings") Signed-off-by: Bartosz Golaszewski --- bindings/glib/tests/tests-misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/glib/tests/tests-misc.c b/bindings/glib/tests/tests-misc.c index a19a20e..356e408 100644 --- a/bindings/glib/tests/tests-misc.c +++ b/bindings/glib/tests/tests-misc.c @@ -56,7 +56,7 @@ GPIOD_TEST_CASE(is_gpiochip_link_good) GPIOD_TEST_CASE(version_string) { - static const gchar *const pattern = "^\\d+\\.\\d+(\\.\\d+|\\-devel|\\-rc\\d+)$"; + static const gchar *const pattern = "^\\d+\\.\\d+(\\.\\d+|\\-devel|\\-rc\\d+)?$"; g_autoptr(GError) err = NULL; g_autoptr(GRegex) regex = NULL; -- 2.30.2