[lasem] tests: avoid compare version output at the start of lsm-test.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] tests: avoid compare version output at the start of lsm-test.
- Date: Tue, 23 Oct 2012 14:26:24 +0000 (UTC)
commit fc1b588168af2445edf549cc5664152beb10373d
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Oct 23 16:25:56 2012 +0200
tests: avoid compare version output at the start of lsm-test.
tests/lsmtest.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/lsmtest.c b/tests/lsmtest.c
index 62ef09d..1a3c681 100644
--- a/tests/lsmtest.c
+++ b/tests/lsmtest.c
@@ -485,16 +485,18 @@ lasem_test_process_dir (const char *name, gboolean compare, gboolean dry_run, St
static gboolean
check_for_compare (void)
{
- char *result;
+ char *result, *output;
- g_spawn_command_line_sync ("compare --version", NULL, &result, NULL, NULL);
+ g_spawn_command_line_sync ("compare --version", &output, &result, NULL, NULL);
+
+ g_free (output);
if (result != NULL) {
g_free (result);
return TRUE;
}
- g_printf ("lsm-test requires compare tool from ImageMagick\n");
+ g_printf ("Compare utility not found.\nPlease install ImageMagick.\n");
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]