[gnome-color-manager] trivial: fix make check
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: fix make check
- Date: Fri, 19 Feb 2010 15:47:48 +0000 (UTC)
commit f65e4096efc2137f31982be5e03d6f06f284eea0
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 19 14:25:26 2010 +0000
trivial: fix make check
src/Makefile.am | 1 +
src/gcm-calibrate-dialog.c | 19 ++-----------------
2 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 102004f..31a3fbe 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -291,6 +291,7 @@ gcm_self_test_SOURCES = \
gcm-gamma-widget.c \
gcm-calibrate.c \
gcm-calibrate-manual.c \
+ gcm-calibrate-dialog.c \
egg-test.h \
egg-test.c \
$(NULL)
diff --git a/src/gcm-calibrate-dialog.c b/src/gcm-calibrate-dialog.c
index 3b1898c..7dee419 100644
--- a/src/gcm-calibrate-dialog.c
+++ b/src/gcm-calibrate-dialog.c
@@ -718,9 +718,8 @@ void
gcm_calibrate_dialog_test (EggTest *test)
{
GcmCalibrateDialog *calibrate_dialog;
- gboolean ret;
- GError *error = NULL;
- gchar *filename;
+// gboolean ret;
+// GError *error = NULL;
if (!egg_test_start (test, "GcmCalibrateDialog"))
return;
@@ -730,21 +729,7 @@ gcm_calibrate_dialog_test (EggTest *test)
calibrate_dialog = gcm_calibrate_dialog_new ();
egg_test_assert (test, calibrate_dialog != NULL);
- /************************************************************/
- egg_test_title (test, "calibrate_dialog display manually");
- filename = egg_test_get_data_file ("test.tif");
- ret = gcm_calibrate_dialog_set_from_exif (GCM_CALIBRATE_DIALOG(calibrate_dialog), filename, &error);
- if (!ret)
- egg_test_failed (test, "error: %s", error->message);
- else if (g_strcmp0 (gcm_calibrate_dialog_get_model_fallback (calibrate_dialog), "NIKON D60") != 0)
- egg_test_failed (test, "got model: %s", gcm_calibrate_dialog_get_model_fallback (calibrate_dialog));
- else if (g_strcmp0 (gcm_calibrate_dialog_get_manufacturer_fallback (calibrate_dialog), "NIKON CORPORATION") != 0)
- egg_test_failed (test, "got manufacturer: %s", gcm_calibrate_dialog_get_manufacturer_fallback (calibrate_dialog));
- else
- egg_test_success (test, NULL);
-
g_object_unref (calibrate_dialog);
- g_free (filename);
egg_test_end (test);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]