[gnome-builder] git: check result of system() in test-git
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: check result of system() in test-git
- Date: Wed, 24 Apr 2019 22:55:43 +0000 (UTC)
commit 4c0177ed77c72e5a169f8b558f5f199e791c9ea1
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 24 15:55:31 2019 -0700
git: check result of system() in test-git
src/plugins/git/daemon/test-git.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/git/daemon/test-git.c b/src/plugins/git/daemon/test-git.c
index 4cd35ab13..60a79f41b 100644
--- a/src/plugins/git/daemon/test-git.c
+++ b/src/plugins/git/daemon/test-git.c
@@ -44,7 +44,8 @@ cleanup_dir (void)
g_autofree gchar *command = NULL;
command = g_strdup_printf ("rm -rf '%s' '%s'", tmpdir, tmpdir_push);
g_message ("%s", command);
- system (command);
+ if (system (command) != 0)
+ g_warning ("Failed to execute command: %s", command);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]