[gtk/ebassi/for-main] tests: Don't drop chdir()'s return value on the floor
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-main] tests: Don't drop chdir()'s return value on the floor
- Date: Mon, 3 Jan 2022 14:08:31 +0000 (UTC)
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]