summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2026-03-07 08:39:24 +0000
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-03-10 11:24:08 +0100
commit0018ff0b42cb59acf64367e47418e403aeecea8b (patch)
tree78ec07b2b114a56295fdeeaa0be77bdbb2097895
parente64f117169e97b94be155c3110873243129acb7a (diff)
gnu: glib: Update failing tests on the Hurd.
* gnu/packages/glib.scm (glib-minimal)[#:phases] <disable-failing-tests>[if (system-hurd?)]: Skip “gio/filenamecompleter.c”, “gio/testfilemonitor.c”, and “gio/gwakeuptest.c”. Run “gio/live-g-file.c”, but skip “g_assert_true (is_mountpoint);”. Re-enable all other previously disabled tests. Change-Id: I434ff5fa084d20c9eb1230682574e096e6d77673 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/glib.scm102
1 files changed, 8 insertions, 94 deletions
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index e44ba2f0237..e490a356a78 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -334,104 +334,18 @@ information, refer to the @samp{dbus-daemon(1)} man page.")))
334 #~()) 334 #~())
335 #$@(if (system-hurd?) 335 #$@(if (system-hurd?)
336 '((with-directory-excursion "gio/tests" 336 '((with-directory-excursion "gio/tests"
337 ;; TIMEOUT after 600s
338 (substitute* '("actions.c"
339 "dbus-appinfo.c"
340 "debugcontroller.c"
341 "gdbus-bz627724.c"
342 "gdbus-connection-slow.c"
343 "gdbus-exit-on-close.c"
344 "gdbus-export.c"
345 "gdbus-introspection.c"
346 "gdbus-method-invocation.c"
347 "gdbus-non-socket.c"
348 "gdbus-proxy-threads.c"
349 "gdbus-proxy-unique-name.c"
350 "gdbus-proxy-well-known-name.c"
351 "gdbus-proxy.c"
352 "gdbus-test-codegen.c"
353 "gmenumodel.c"
354 "gnotification.c"
355 "stream-rw_all.c")
356 (("return (g_test_run|session_bus_run)" all call)
357 (string-append "return 0;// " call))
358 ((" (ret|rtv|result) = (g_test_run|session_bus_run)"
359 all var call)
360 (string-append " " var " = 0;// " call))
361 (("[ \t]*g_test_add_func.*;") ""))
362
363 ;; commenting-out g_assert, g_test_add_func, g_test_run
364 ;; does not help; special-case short-circuit.
365 (substitute* "gdbus-connection-loss.c" ;; TODO?
366 ((" gchar \\*path;.*" all)
367 (string-append all " return 0;\n")))
368
369 ;; FAIL 337 ;; FAIL
370 (substitute* '("appmonitor.c" 338 (substitute* '("filenamecompleter.c"
371 "async-splice-output-stream.c" 339 "testfilemonitor.c")
372 "autoptr.c" 340 (("return (g_test_run)" all call)
373 "contexts.c"
374 "converter-stream.c"
375 "file.c"
376 "g-file-info.c"
377 "g-file.c"
378 "g-icon.c"
379 "gapplication.c"
380 "gdbus-connection-flush.c"
381 "gdbus-connection.c"
382 "gdbus-names.c"
383 "gdbus-server-auth.c"
384 "gsocketclient-slow.c"
385 "gsubprocess.c"
386 "io-stream.c"
387 "live-g-file.c"
388 "memory-monitor.c"
389 "mimeapps.c"
390 "network-monitor-race.c"
391 "network-monitor.c"
392 "pollable.c"
393 "power-profile-monitor.c"
394 "readwrite.c"
395 "resources.c"
396 "socket-service.c"
397 "socket.c"
398 "tls-bindings.c"
399 "tls-certificate.c"
400 "tls-database.c"
401 "trash.c"
402 "vfs.c")
403 (("return (g_test_run|session_bus_run)" all call)
404 (string-append "return 0;// " call)) 341 (string-append "return 0;// " call))
405 ((" (ret|rtv|result) = (g_test_run|session_bus_run)"
406 all var call)
407 (string-append " " var " = 0;// " call))
408 (("[ \t]*g_test_add_func.*;") "")) 342 (("[ \t]*g_test_add_func.*;") ""))
409 343 ;; Fails to identify / as a mountpoint
410 ;; commenting-out g_test_add_func, g_test_run does 344 (substitute* "live-g-file.c"
411 ;; not help; special-case short-circuit. 345 (("g_assert_true \\(is_mountpoint\\);") "")))
412 (substitute* "gsettings.c"
413 (("#ifdef TEST_LOCALE_PATH" all)
414 (string-append " return 0;\n" all)))
415
416 ;; commenting-out g_test_add_func, ;; g_test_run does
417 ;; not help; special-case short-circuit.
418 (substitute* "proxy-test.c"
419 ((" gint result.*;" all)
420 (string-append all " return 0;\n")))
421
422 ;; commenting-out g_test_add_func, g_test_run
423 ;; does not help; special-case short-circuit.
424 (substitute* "volumemonitor.c"
425 ((" gboolean ret;" all)
426 (string-append all " return 0;\n"))))
427
428 (with-directory-excursion "glib/tests" 346 (with-directory-excursion "glib/tests"
429 ;; TIMEOUT after 600s 347 ;; pthread_mutex_lock: EINVAL
430 (substitute* "thread-pool.c" 348 (substitute* "gwakeuptest.c"
431 (("[ \t]*g_test_add_func.*;") ""))
432
433 ;; FAIL
434 (substitute* "fileutils.c"
435 (("[ \t]*g_test_add_func.*;") "")))) 349 (("[ \t]*g_test_add_func.*;") ""))))
436 '()))) 350 '())))
437 ;; Python references are not being patched in patch-phase of build, 351 ;; Python references are not being patched in patch-phase of build,