summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2011-10-13 17:50:25 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2011-10-13 17:50:25 +0100
commit96cb1d7128ef5d92ac89ecde84cbdedda94ba261 (patch)
tree2135266529b67a6c8bb2e9aefd6663e846c6c3ec
parenta063f0961129d9e40b3e73ecf30b9976240a09fc (diff)
downloadclutter-96cb1d7128ef5d92ac89ecde84cbdedda94ba261.tar.gz
Disable deprecation warnings for the test suite
We test deprecated functionality as well as current one, so we need to enable all symbols and disable the deprecation warnings.
-rw-r--r--tests/conform/Makefile.am4
-rw-r--r--tests/conform/test-clutter-cairo-texture.c2
-rw-r--r--tests/conform/test-texture-fbo.c2
-rw-r--r--tests/interactive/Makefile.am4
-rw-r--r--tests/interactive/test-cairo-flowers.c3
-rw-r--r--tests/interactive/test-fbo.c2
-rw-r--r--tests/interactive/test-shader.c4
7 files changed, 4 insertions, 17 deletions
diff --git a/tests/conform/Makefile.am b/tests/conform/Makefile.am
index c9e81d52e..f017f2c7c 100644
--- a/tests/conform/Makefile.am
+++ b/tests/conform/Makefile.am
@@ -159,8 +159,8 @@ INCLUDES = \
test_conformance_CPPFLAGS = \
-DG_DISABLE_SINGLE_INCLUDES \
-DCOGL_ENABLE_EXPERIMENTAL_API \
- -DCOGL_DISABLE_DEPRECATED \
- -DCLUTTER_DISABLE_DEPRECATED \
+ -DG_DISABLE_DEPRECATION_WARNINGS \
+ -DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
-DTESTS_DATADIR=\""$(top_srcdir)/tests/data"\"
test_conformance_CFLAGS = -g $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
diff --git a/tests/conform/test-clutter-cairo-texture.c b/tests/conform/test-clutter-cairo-texture.c
index 5708f5a31..a6b73c83b 100644
--- a/tests/conform/test-clutter-cairo-texture.c
+++ b/tests/conform/test-clutter-cairo-texture.c
@@ -1,5 +1,3 @@
-#undef CLUTTER_DISABLE_DEPRECATED
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#include <cogl/cogl.h>
diff --git a/tests/conform/test-texture-fbo.c b/tests/conform/test-texture-fbo.c
index 6bbfaf379..9aa696db5 100644
--- a/tests/conform/test-texture-fbo.c
+++ b/tests/conform/test-texture-fbo.c
@@ -1,5 +1,3 @@
-#undef CLUTTER_DISABLE_DEPRECATED
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#include <cogl/cogl.h>
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index eb4bde652..cf324ec0e 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -137,8 +137,8 @@ test_interactive_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS)
test_interactive_CPPFLAGS = \
-DTESTS_DATADIR=\""$(abs_top_srcdir)/tests/data"\" \
-DG_DISABLE_SINGLE_INCLUDES \
- -DCOGL_DISABLE_DEPRECATED \
- -DCLUTTER_DISABLE_DEPRECATED
+ -DGLIB_DISABLE_DEPRECATION_WARNINGS \
+ -DCLUTTER_DISABLE_DEPRECATION_WARNINGS
test_interactive_LDFLAGS = -export-dynamic
test_interactive_LDADD = $(CLUTTER_LIBS) $(common_ldadd) -lm
diff --git a/tests/interactive/test-cairo-flowers.c b/tests/interactive/test-cairo-flowers.c
index 17ff4a0ad..5dca4577b 100644
--- a/tests/interactive/test-cairo-flowers.c
+++ b/tests/interactive/test-cairo-flowers.c
@@ -1,9 +1,6 @@
/*
* Pretty cairo flower hack.
*/
-
-#undef CLUTTER_DISABLE_DEPRECATED
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#ifndef _MSC_VER
diff --git a/tests/interactive/test-fbo.c b/tests/interactive/test-fbo.c
index b50d974d6..5854ad181 100644
--- a/tests/interactive/test-fbo.c
+++ b/tests/interactive/test-fbo.c
@@ -1,5 +1,3 @@
-#undef CLUTTER_DISABLE_DEPRECATED
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#include <errno.h>
diff --git a/tests/interactive/test-shader.c b/tests/interactive/test-shader.c
index f9f6f5663..44ab581ff 100644
--- a/tests/interactive/test-shader.c
+++ b/tests/interactive/test-shader.c
@@ -1,7 +1,3 @@
-/*#define TEST_GROUP */
-
-#undef CLUTTER_DISABLE_DEPRECATED
-#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <clutter/clutter.h>
#include <errno.h>