[libgweather/ebassi/parallel-tests: 13/15] tests: Replace a warning with a test message




commit 2b78434aa0d2c8f9092fa88173ba69c9dc94cb0b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Nov 19 17:52:14 2021 +0000

    tests: Replace a warning with a test message

 libgweather/tests/test_libgweather.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c
index 4859a0e0..023454da 100644
--- a/libgweather/tests/test_libgweather.c
+++ b/libgweather/tests/test_libgweather.c
@@ -94,11 +94,9 @@ test_airport_distance_sanity (void)
 
     test_airport_distance_children (world);
 
-    if (g_test_failed ())
-        g_warning ("Maximum city to airport distance is %.1f km", max_distance);
+    g_test_message ("Maximum airport distance: %g", max_distance);
 
     g_clear_object (&world);
-
     gweather_test_reset_world ();
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]