From 9f2d2e0f929d3a3c28ff60a64d873387e5be678f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 29 Oct 2014 20:01:55 +0100 Subject: [PATCH] fix broken test that didn't like the new init_locale() requirements. --- src/kernel/jsonconf.test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/jsonconf.test.c b/src/kernel/jsonconf.test.c index 7a401b8f7..6c555bfc6 100644 --- a/src/kernel/jsonconf.test.c +++ b/src/kernel/jsonconf.test.c @@ -103,7 +103,7 @@ static void test_races(CuTest * tc) static void test_findrace(CuTest *tc) { const char * data = "{\"races\": { \"dwarf\": {} }, \"strings\": { \"de\" : { \"race::dwarf\" : \"Zwerg\" } } }"; cJSON *json = cJSON_Parse(data); - const struct locale *lang; + struct locale *lang; const race *rc; CuAssertPtrNotNull(tc, json); @@ -112,6 +112,7 @@ static void test_findrace(CuTest *tc) { CuAssertPtrEquals(tc, 0, (void *)findrace("Zwerg", lang)); json_config(json); + init_locale(lang); rc = findrace("Zwerg", lang); CuAssertPtrNotNull(tc, rc); CuAssertStrEquals(tc, "dwarf", rc->_name);