[gtk/ebassi/for-main] tests: Don't drop chdir()'s return value on the floor




commit 70b22d0c000de93617bbe609ee1c0114a3b85863
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jan 3 14:07:25 2022 +0000

    tests: Don't drop chdir()'s return value on the floor
    
    Avoid a compile time warning, and ensure that the test suite is actually
    doing its job.

 testsuite/reftests/gtk-reftest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c
index 3872f554dc..1dd1a080f2 100644
--- a/testsuite/reftests/gtk-reftest.c
+++ b/testsuite/reftests/gtk-reftest.c
@@ -552,7 +552,7 @@ main (int argc, char **argv)
    * is the same as the reftest data, because we're using the
    * "file" property of GtkImage as a relative path in builder files.
    */
-  chdir (basedir);
+  g_assert (chdir (basedir) == 0);
 
   g_log_set_writer_func (log_writer, NULL, NULL);
 


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