skeleton of a language test, try to find init_direction memory leak.

This commit is contained in:
Enno Rehling 2016-09-04 20:27:36 +01:00
parent a56f51099c
commit a5b3fad67a
3 changed files with 22 additions and 1 deletions

View File

@ -76,6 +76,7 @@ int RunAllTests(int argc, char *argv[])
ADD_SUITE(bsdstring);
ADD_SUITE(functions);
ADD_SUITE(gamedata);
ADD_SUITE(language);
ADD_SUITE(parser);
ADD_SUITE(password);
ADD_SUITE(umlaut);

View File

@ -11,7 +11,7 @@ bsdstring.test.c
functions.test.c
gamedata.test.c
# goodies.test.c
# language.test.c
language.test.c
# lists.test.c
# log.test.c
# message.test.c

20
src/util/language.test.c Normal file
View File

@ -0,0 +1,20 @@
#include <platform.h>
#include <config.h>
#include "language.h"
#include <CuTest.h>
#include <tests.h>
static void test_language(CuTest *tc)
{
test_setup();
test_cleanup();
}
CuSuite *get_language_suite(void)
{
CuSuite *suite = CuSuiteNew();
SUITE_ADD_TEST(suite, test_language);
return suite;
}