test: don't use enum values in ck_assert macros directly
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 May 2015 01:29:49 +0000 (11:29 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 May 2015 10:55:48 +0000 (20:55 +1000)
commitd81a677f6dc921ddebbc446b06e92c69a0699a37
treeda317f09da98ec53b2647d914505855c07ae77b2
parent7b965b63c03015ed350d1308277868b7e4644ca4
test: don't use enum values in ck_assert macros directly

Unfortunately, typeof(enum something) != typeof(ENUM_VALUE) and produces a
-Wsign-compare warning

Preemptively fix this, it'll show up in the upcoming litest_asssert macros
otherwise.

This fix only applies to helper functions, tests themselves wont (yet) be
switched to the new macros and don't need fixing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
test/pointer.c