tests: info: Fix thread-id pattern matching on Windows
authorSeungha Yang <seungha.yang@navercorp.com>
Sat, 29 Feb 2020 10:00:44 +0000 (19:00 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 2 Mar 2020 04:16:50 +0000 (04:16 +0000)
The format modifier for thread-id prints hex value without "0x" prefix on Windows.

tests/check/gst/gstinfo.c

index ab212e4e2c6c3d315a048dfe155f5796712fe83c..52f0c3b2d7ab4749f2d8352b57b091417738e1b1 100644 (file)
@@ -241,7 +241,7 @@ compare_gst_log_func (GstDebugCategory * category, GstDebugLevel level,
   log_line = gst_debug_log_get_line (category, level, file, function, line,
       object, message);
 
-  match = g_pattern_match_simple ("*:*:*.*0x*DEBUG*check*gstinfo.c:*"
+  match = g_pattern_match_simple ("*:*:*.*0*DEBUG*check*gstinfo.c:*"
       ":info_log_handler_get_line: test message\n", log_line);
   fail_unless_equals_int (match, TRUE);
   g_free (log_line);