File: tests-regex-Add-the-error-messages-to-tests.patch

package info (click to toggle)
glib2.0 2.86.1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 67,012 kB
  • sloc: ansic: 544,596; python: 9,702; sh: 1,612; xml: 1,482; perl: 1,222; cpp: 535; makefile: 321; javascript: 11
file content (26 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Thu, 23 Oct 2025 22:37:35 +0200
Subject: tests/regex: Add the error messages to tests

It can be useful for debugging purposes

Origin: upstream, 2.86.2, commit:c95a7be12405bb46ec875709aadb2c34b6435687
Bug: https://gitlab.gnome.org/GNOME/glib/-/issues/3809
Bug-Debian: https://bugs.debian.org/1118572
---
 glib/tests/regex.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/glib/tests/regex.c b/glib/tests/regex.c
index 13361c4..a774683 100644
--- a/glib/tests/regex.c
+++ b/glib/tests/regex.c
@@ -131,6 +131,8 @@ test_new_fail (gconstpointer d)
 
   g_assert (regex == NULL);
   g_assert_error (error, G_REGEX_ERROR, data->expected_error);
+  g_test_message ("Compiling pattern /%s/ failed with error: %s",
+                  data->pattern, error->message);
   g_error_free (error);
 }