From: Bartosz Golaszewski Date: Tue, 22 Oct 2024 08:56:02 +0000 (+0200) Subject: bindings: glib: tests: fix version regex X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9c8d94eb59f0f942cec44643361c8d308dbeeb39;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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;