forked from github/server
test_create_locale leaks memory.
adding a simple test that shows this (under valgrind).
This commit is contained in:
parent
a5b3fad67a
commit
19d490ce71
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue