From: Øyvind Kolås Date: Fri, 16 Nov 2018 21:32:10 +0000 (+0100) Subject: tests: make srgb-to-lab-u8 also compile stand-alone X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~12^2~56 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a5f169b56a3b288fdd5d0f4a824946c392c3096c;p=babl.git tests: make srgb-to-lab-u8 also compile stand-alone --- diff --git a/tests/hsl.c b/tests/hsl.c index 0457c7f..aaa1855 100644 --- a/tests/hsl.c +++ b/tests/hsl.c @@ -17,8 +17,7 @@ #include -#include "config.h" -#include "babl.h" +#include #include "common.inc" diff --git a/tests/srgb_to_lab_u8.c b/tests/srgb_to_lab_u8.c index 8974660..2b0e6ad 100644 --- a/tests/srgb_to_lab_u8.c +++ b/tests/srgb_to_lab_u8.c @@ -16,9 +16,9 @@ * . */ -#include "config.h" #include -#include "babl-internal.h" +#include +#include #define PIXELS 6 #define TOLERANCE 0 @@ -53,9 +53,9 @@ test (void) for (i = 0; i < PIXELS * 3; i++) { - if (abs (destination_buf[i] - reference_buf[i]) > TOLERANCE) + if (fabs (destination_buf[i] - reference_buf[i]) > TOLERANCE) { - babl_log ("%2i (%2i%%3=%i, %2i/3=%i) is %i should be %i", + fprintf (stderr, "%2i (%2i%%3=%i, %2i/3=%i) is %i should be %i", i, i, i % 3, i, i / 3, destination_buf[i], reference_buf[i]); OK = 0; }