test_create_locale leaks memory.

adding a simple test that shows this (under valgrind).
This commit is contained in:
Enno Rehling 2016-09-04 22:07:52 +02:00
parent a5b3fad67a
commit 19d490ce71
1 changed files with 6 additions and 1 deletions

View File

@ -5,10 +5,15 @@
#include <CuTest.h>
#include <tests.h>
extern const char *directions[];
static void test_language(CuTest *tc)
{
const char *str;
test_setup();
default_locale = test_create_locale();
str = directions[1];
CuAssertStrEquals(tc, str, locale_getstring(default_locale, str));
test_cleanup();
}