diff options
author | Jon Cruz <jonc@osg.samsung.com> | 2015-06-15 15:37:08 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-06-15 17:11:45 -0700 |
commit | 35b2eaa989e4960501943c0753e2d5a3e687db92 (patch) | |
tree | d8f0f0b2304e22d18f1aae4496c8bb803188f438 /tests/weston-test-runner.h | |
parent | 4678bab13ce29b02363abfa40fd78cf94e107e8b (diff) | |
download | weston-35b2eaa989e4960501943c0753e2d5a3e687db92.tar.gz |
Moved helper macro to a discrete include file.
To help reduce code duplication and also 'kitchen-sink' includes
the ARRAY_LENGTH macro was moved to a stand-alone file and
referenced from the sources consuming it. Other macros will be
added in subsequent passes.
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests/weston-test-runner.h')
-rw-r--r-- | tests/weston-test-runner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/weston-test-runner.h b/tests/weston-test-runner.h index 0ed131cd..a4436919 100644 --- a/tests/weston-test-runner.h +++ b/tests/weston-test-runner.h @@ -31,6 +31,8 @@ #include <stdlib.h> +#include "shared/helpers.h" + #ifdef NDEBUG #error "Tests must not be built with NDEBUG defined, they rely on assert()." #endif @@ -44,8 +46,6 @@ struct weston_test { int must_fail; } __attribute__ ((aligned (32))); -#define ARRAY_LENGTH(a) ((int) (sizeof (a) / sizeof (a)[0])) - #define TEST_BEGIN(name, arg) \ static void name(arg) |