gegl r2955 - in trunk: . tests
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2955 - in trunk: . tests
- Date: Sun, 1 Mar 2009 11:11:15 +0000 (UTC)
Author: martinn
Date: Sun Mar 1 11:11:14 2009
New Revision: 2955
URL: http://svn.gnome.org/viewvc/gegl?rev=2955&view=rev
Log:
Simplify test case result checking
Modified:
trunk/ChangeLog
trunk/tests/test-proxynop-processing.c
Modified: trunk/tests/test-proxynop-processing.c
==============================================================================
--- trunk/tests/test-proxynop-processing.c (original)
+++ trunk/tests/test-proxynop-processing.c Sun Mar 1 11:11:14 2009
@@ -70,13 +70,9 @@
result_buffer,
GEGL_AUTO_ROWSTRIDE,
GEGL_BLIT_DEFAULT);
- if (result_buffer[RED] == 255 &&
- result_buffer[GREEN] == 0 &&
- result_buffer[BLUE] == 255)
- {
- result = SUCCESS;
- }
- else
+ if (!(result_buffer[RED] == 255 &&
+ result_buffer[GREEN] == 0 &&
+ result_buffer[BLUE] == 255))
{
result = FAILURE;
g_printerr ("Initial processing failed, you messed up GEGL pretty badly :(");
@@ -96,13 +92,9 @@
result_buffer,
GEGL_AUTO_ROWSTRIDE,
GEGL_BLIT_DEFAULT);
- if (result_buffer[RED] == 0 &&
- result_buffer[GREEN] == 0 &&
- result_buffer[BLUE] == 255)
- {
- result = SUCCESS;
- }
- else
+ if (!(result_buffer[RED] == 0 &&
+ result_buffer[GREEN] == 0 &&
+ result_buffer[BLUE] == 255))
{
result = FAILURE;
g_printerr ("Second processing failed, i.e. changing color didn't work properly");
@@ -120,13 +112,9 @@
result_buffer,
GEGL_AUTO_ROWSTRIDE,
GEGL_BLIT_DEFAULT);
- if (result_buffer[RED] == 0 &&
- result_buffer[GREEN] == 0 &&
- result_buffer[BLUE] == 255)
- {
- result = SUCCESS;
- }
- else
+ if (!(result_buffer[RED] == 0 &&
+ result_buffer[GREEN] == 0 &&
+ result_buffer[BLUE] == 255))
{
result = FAILURE;
g_printerr ("Third processing failed, looks like you messed up caching");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]