[libgweather] tests: Better debug in METAR tests



commit 0a7403d78c58a9cde1b2073eec8417e26fe03dbf
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 13 17:58:15 2019 +0200

    tests: Better debug in METAR tests

 libgweather/test_libgweather.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/test_libgweather.c b/libgweather/test_libgweather.c
index 20be43d..1201bc0 100644
--- a/libgweather/test_libgweather.c
+++ b/libgweather/test_libgweather.c
@@ -360,7 +360,7 @@ test_metar_weather_station (GWeatherLocation *location,
 
     line = g_hash_table_lookup (stations_ht, code);
     if (!line) {
-        g_print ("Could not find airport for '%s'\n", code);
+        g_print ("Could not find airport for '%s' in " METAR_SOURCES "\n", code);
         g_test_fail ();
     } else {
         char *has_metar;
@@ -370,7 +370,7 @@ test_metar_weather_station (GWeatherLocation *location,
             g_print ("Airport weather station '%s' is obsolete\n", code);
             g_test_fail ();
         } else if (*has_metar == ' ') {
-            g_print ("Could not find weather station for '%s'\n", code);
+            g_print ("Could not find weather station for '%s' in " METAR_SOURCES "\n", code);
             g_test_fail ();
         }
         g_free (has_metar);


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