From c4cb9650332450895a158ae567ca698dc26a836b Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 2 May 2019 13:24:39 +0100 Subject: [PATCH] Add more assertions to ManyManySelectors test. This is intermittently failing in CI. It looks as if the CI machine is running out of memory in a way that we are not gracefully handling. --- Test/ManyManySelectors.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Test/ManyManySelectors.m b/Test/ManyManySelectors.m index c859f10..a144518 100644 --- a/Test/ManyManySelectors.m +++ b/Test/ManyManySelectors.m @@ -31,6 +31,11 @@ int main(void) { snprintf(selBuffer, 16, "%" PRId32 "selector%" PRIx32, i, i); nextSel = sel_registerName(selBuffer); + if (strcmp(selBuffer, sel_getName(nextSel)) != 0) + { + fprintf(stderr, "'%s' != '%s'\n", selBuffer, sel_getName(nextSel)); + } + assert(strcmp(selBuffer, sel_getName(nextSel)) == 0); sel_size += strlen(selBuffer); } assert(class_addMethod(object_getClass([Test class]), nextSel, (IMP)x, "@@:"));