summaryrefslogtreecommitdiff
path: root/test/corestrings.c
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-08-12 12:58:38 +0200
committerSven Weidauer <sven@5sw.de>2017-08-12 12:58:38 +0200
commitd0549e7a5b14959097a1e8696dce1b1f40c6ba54 (patch)
tree9cb65c8a82a3a08f1c360a07287372febbad2878 /test/corestrings.c
parentb9b91d4117e500d6da6b68d505d99c34e92c1fd1 (diff)
parent8c29c675c4301c90f5038a27aa31fa640f47e5aa (diff)
downloadnetsurf-d0549e7a5b14959097a1e8696dce1b1f40c6ba54.tar.gz
netsurf-d0549e7a5b14959097a1e8696dce1b1f40c6ba54.tar.bz2
Merge remote-tracking branch 'origin/master' into svenw/cocoa
Diffstat (limited to 'test/corestrings.c')
-rw-r--r--test/corestrings.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/corestrings.c b/test/corestrings.c
index e8f68c0a6..02640c953 100644
--- a/test/corestrings.c
+++ b/test/corestrings.c
@@ -35,6 +35,13 @@
#include "test/malloc_fig.h"
+/**
+ * The number of corestrings.
+ *
+ * This is used to test all the out of memory paths in initialisation.
+ */
+#define CORESTRING_TEST_COUNT 435
+
START_TEST(corestrings_test)
{
nserror ires;
@@ -58,7 +65,7 @@ static TCase *corestrings_case_create(void)
TCase *tc;
tc = tcase_create("corestrings");
- tcase_add_loop_test(tc, corestrings_test, 0, 437);
+ tcase_add_loop_test(tc, corestrings_test, 0, CORESTRING_TEST_COUNT);
return tc;
}