[Cogl] [PATCH 3/8] tests: Remove test-fixed

Robert Bragg robert at sixbynine.org
Tue Sep 18 07:29:05 PDT 2012


This looks good to land to me:

Reviewed-by: Robert Bragg <robert at linux.intel.com>

thanks,
- Robert

On Mon, Sep 17, 2012 at 8:08 PM, Damien Lespiau
<damien.lespiau at gmail.com> wrote:
> From: Damien Lespiau <damien.lespiau at intel.com>
>
> test-fixed was to test the fixed float support in cogl and was part of
> the still to be ported tests.
>
> Fixed float functions have been dropped from cogl2, so there's no need
> for this test anymore.
> ---
>  tests/conform/Makefile.am  |    1 -
>  tests/conform/test-fixed.c |   18 ------------------
>  2 files changed, 0 insertions(+), 19 deletions(-)
>  delete mode 100644 tests/conform/test-fixed.c
>
> diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am
> index b306c83..bae39cb 100644
> --- a/tests/conform/Makefile.am
> +++ b/tests/conform/Makefile.am
> @@ -11,7 +11,6 @@ common_sources = \
>         $(NULL)
>
>  unported_test_sources = \
> -       test-fixed.c \
>         test-materials.c \
>         test-viewport.c \
>         test-multitexture.c \
> diff --git a/tests/conform/test-fixed.c b/tests/conform/test-fixed.c
> deleted file mode 100644
> index 175b2d1..0000000
> --- a/tests/conform/test-fixed.c
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -#include <stdio.h>
> -#include <clutter/clutter.h>
> -
> -#include "test-conform-common.h"
> -
> -void
> -test_fixed (TestUtilsGTestFixture *fixture,
> -                void *data)
> -{
> -  g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_FLOAT (1.0));
> -  g_assert_cmpint (COGL_FIXED_1, ==, COGL_FIXED_FROM_INT (1));
> -
> -  g_assert_cmpint (COGL_FIXED_0_5, ==, COGL_FIXED_FROM_FLOAT (0.5));
> -
> -  g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_1), ==, 1.0);
> -  g_assert_cmpfloat (COGL_FIXED_TO_FLOAT (COGL_FIXED_0_5), ==, 0.5);
> -}
> -
> --
> 1.7.7.5
>
> _______________________________________________
> Cogl mailing list
> Cogl at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/cogl


More information about the Cogl mailing list