| 1 | #cxx . . $ `<file>/tools/runner.c`/include <cgreen/cgreen.h>cxx . . $ `<file>/include/cgreen/cgreen.h`/ |
| 2 | #include <cgreen/xml_reporter.h>cxx . . $ `<file>/include/cgreen/xml_reporter.h`/ |
| 3 | #include <cgreen/vector.h>cxx . . $ `<file>/include/cgreen/vector.h`/ |
| 4 | |
| 5 | #include <dlfcn.h> |
| 6 | #include <stdio.h> |
| 7 | #include <stdlib.h> |
| 8 | #include <stdint.h> |
| 9 | #include <string.h> |
| 10 | #include <unistd.h> |
| 11 | #include <fnmatch.h> |
| 12 | |
| 13 | #include "../src/utils.h"cxx . . $ `<file>/src/utils.h`/ |
| 14 | #include "runner.h"cxx . . $ `<file>/tools/runner.h`/ |
| 15 | #include "test_item.h"cxx . . $ `<file>/tools/test_item.h`/ |
| 16 | |
| 17 | #include "discoverer.h"cxx . . $ `<file>/tools/discoverer.h`/ |
| 18 | |
| 19 | /* The ContextSuite is a datastructure created to partion the tests in |
| 20 | suites according to the contexts, one suite per context. It |
| 21 | consists of a list of nodes, each mapping a context name to a |
| 22 | TestSuite. If there where a public way to navigate the structure of |
| 23 | suites, we could name the TestSuites after the context and then |
| 24 | find the appropriate suite by navigating in the TestSuite |
| 25 | structure, but this seems impossible for now. */ |
| 26 | |
| 27 | typedef struct ContextSuitecxx . . $ ContextSuite# { |
| 28 | char *context_namecxx . . $ ContextSuite#context_name.; |
| 29 | TestSuitecxx . . $ TestSuite# *suitecxx . . $ ContextSuite#suite.; |
| 30 | struct ContextSuitecxx . . $ ContextSuite# *nextcxx . . $ ContextSuite#next.; |
| 31 | } ContextSuitecxx . . $ ContextSuite#; |
| 32 | |
| 33 | /*----------------------------------------------------------------------*/ |
| 34 | static void destroy_context_suitescxx . . $ destroy_context_suites(81216f34e928c6bc).(ContextSuitecxx . . $ ContextSuite# *context_suite) { |
| 35 | if (context_suite != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 36 | if (context_suite->nextcxx . . $ ContextSuite#next. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) |
| 37 | destroy_context_suitescxx . . $ destroy_context_suites(81216f34e928c6bc).(context_suite->nextcxx . . $ ContextSuite#next.); |
| 38 | freecxx . . $ free(5d22bdacc48458e8).(context_suite->context_namecxx . . $ ContextSuite#context_name.); |
| 39 | freecxx . . $ free(5d22bdacc48458e8).(context_suite); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | #define CGREEN_DEFAULT_SUITEcxx . . $ `tools/runner.c:43:9`! "default" |
| 44 | |
| 45 | |
| 46 | /*----------------------------------------------------------------------*/ |
| 47 | static char *context_name_ofcxx . . $ context_name_of(a8b8e32347182212).(const char* symbolic_name) { |
| 48 | char *context_name; |
| 49 | |
| 50 | if (strchrcxx . . $ strchr(2050848944e00d54).(symbolic_name, ':')) { |
| 51 | context_name = string_dupcxx . . $ string_dup(a8b8e32347182212).(symbolic_name); |
| 52 | *strchrcxx . . $ strchr(2050848944e00d54).(context_name, ':') = '\0'; |
| 53 | } else { |
| 54 | context_name = string_dupcxx . . $ string_dup(a8b8e32347182212).(CGREEN_DEFAULT_SUITEcxx . . $ `tools/runner.c:43:9`!); |
| 55 | } |
| 56 | |
| 57 | return context_name; |
| 58 | } |
| 59 | |
| 60 | |
| 61 | /*----------------------------------------------------------------------*/ |
| 62 | static char *test_name_ofcxx . . $ test_name_of(a8b8e32347182212).(const char *symbolic_name) { |
| 63 | const char *colon = strchrcxx . . $ strchr(2050848944e00d54).(symbolic_name, ':'); |
| 64 | if (colon) { |
| 65 | return string_dupcxx . . $ string_dup(a8b8e32347182212).(colon+1); |
| 66 | } |
| 67 | |
| 68 | return string_dupcxx . . $ string_dup(a8b8e32347182212).(symbolic_name); |
| 69 | } |
| 70 | |
| 71 | |
| 72 | /*----------------------------------------------------------------------*/ |
| 73 | static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! test_matches_patterncxx . . $ test_matches_pattern(57b433dece09d28a).(const char *symbolic_name_pattern, |
| 74 | TestItemcxx . . $ TestItem# *test_item) { |
| 75 | char* context_name = context_name_ofcxx . . $ context_name_of(a8b8e32347182212).(symbolic_name_pattern); |
| 76 | int context_name_matches_test = fnmatchcxx . . $ fnmatch(f0be30763a490cce).(context_name, test_item->context_namecxx . . $ test_item#context_name., 0) == 0; |
| 77 | char* test_name = test_name_ofcxx . . $ test_name_of(a8b8e32347182212).(symbolic_name_pattern); |
| 78 | int test_name_matches_test = fnmatchcxx . . $ fnmatch(f0be30763a490cce).(test_name, test_item->test_namecxx . . $ test_item#test_name., 0) == 0; |
| 79 | |
| 80 | freecxx . . $ free(5d22bdacc48458e8).(context_name); |
| 81 | freecxx . . $ free(5d22bdacc48458e8).(test_name); |
| 82 | |
| 83 | return context_name_matches_test && test_name_matches_test; |
| 84 | } |
| 85 | |
| 86 | |
| 87 | /*----------------------------------------------------------------------*/ |
| 88 | static TestSuitecxx . . $ TestSuite# *find_suite_for_contextcxx . . $ find_suite_for_context(9002edde03db5291).(ContextSuitecxx . . $ ContextSuite# *suites, const char *context_name) { |
| 89 | ContextSuitecxx . . $ ContextSuite# *suite; |
| 90 | |
| 91 | for (suite = suites; suite != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; suite = suite->nextcxx . . $ ContextSuite#next.) { |
| 92 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(suite->context_namecxx . . $ ContextSuite#context_name., context_name) == 0) |
| 93 | break; |
| 94 | } |
| 95 | |
| 96 | if (suite != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 97 | return suite->suitecxx . . $ ContextSuite#suite.; |
| 98 | } |
| 99 | |
| 100 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 101 | } |
| 102 | |
| 103 | |
| 104 | /*----------------------------------------------------------------------*/ |
| 105 | static ContextSuitecxx . . $ ContextSuite# *add_new_context_suitecxx . . $ add_new_context_suite(cbf55bcb009364f6).(TestSuitecxx . . $ TestSuite# *parent, const char* context_name, |
| 106 | ContextSuitecxx . . $ ContextSuite# *next) { |
| 107 | ContextSuitecxx . . $ ContextSuite# *new_context_suite = (ContextSuitecxx . . $ ContextSuite# *)calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(ContextSuitecxx . . $ ContextSuite#)); |
| 108 | new_context_suite->context_namecxx . . $ ContextSuite#context_name. = string_dupcxx . . $ string_dup(a8b8e32347182212).(context_name); |
| 109 | new_context_suite->suitecxx . . $ ContextSuite#suite. = create_named_test_suitecxx . . $ `include/cgreen/suite.h:21:9`!(context_name); |
| 110 | new_context_suite->nextcxx . . $ ContextSuite#next. = next; |
| 111 | add_suite_cxx . . $ add_suite_(b1565dee450d547c).(parent, context_name, new_context_suite->suitecxx . . $ ContextSuite#suite.); |
| 112 | return new_context_suite; |
| 113 | } |
| 114 | |
| 115 | |
| 116 | /*----------------------------------------------------------------------*/ |
| 117 | static void add_test_to_contextcxx . . $ add_test_to_context(ae670815293584f3).(TestSuitecxx . . $ TestSuite# *parent, ContextSuitecxx . . $ ContextSuite# **context_suites, |
| 118 | TestItemcxx . . $ TestItem# *test_item, CgreenTestcxx . . $ CgreenTest# *test) { |
| 119 | TestSuitecxx . . $ TestSuite# *suite_for_context = find_suite_for_contextcxx . . $ find_suite_for_context(9002edde03db5291).(*context_suites, test_item->context_namecxx . . $ test_item#context_name.); |
| 120 | |
| 121 | if (suite_for_context == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 122 | *context_suites = add_new_context_suitecxx . . $ add_new_context_suite(cbf55bcb009364f6).(parent, test_item->context_namecxx . . $ test_item#context_name., *context_suites); |
| 123 | suite_for_context = (*context_suites)->suitecxx . . $ ContextSuite#suite.; |
| 124 | } |
| 125 | add_test_cxx . . $ add_test_(1a7f31c2865e427e).(suite_for_context, test_item->test_namecxx . . $ test_item#test_name., test); |
| 126 | } |
| 127 | |
| 128 | |
| 129 | /*----------------------------------------------------------------------*/ |
| 130 | static TestItemcxx . . $ TestItem# *get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(CgreenVectorcxx . . $ CgreenVector# *tests, int i) { |
| 131 | return (TestItemcxx . . $ TestItem#*)cgreen_vector_getcxx . . $ cgreen_vector_get(3d562d97df0b0b67).(tests, i); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | /*----------------------------------------------------------------------*/ |
| 136 | static int add_matching_tests_to_suitecxx . . $ add_matching_tests_to_suite(502a9001a5e1cfc7).(void *handle, |
| 137 | const char *symbolic_name_pattern, |
| 138 | CgreenVectorcxx . . $ CgreenVector# *tests, TestSuitecxx . . $ TestSuite# *suite, |
| 139 | ContextSuitecxx . . $ ContextSuite# **context_suites) |
| 140 | { |
| 141 | int count = 0; |
| 142 | |
| 143 | for (int i = 0; i<cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(tests); i++) { |
| 144 | if (symbolic_name_pattern == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! || test_matches_patterncxx . . $ test_matches_pattern(57b433dece09d28a).(symbolic_name_pattern, |
| 145 | get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(tests, i))) { |
| 146 | char *error; |
| 147 | const char *specification_name = get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(tests, i)->specification_namecxx . . $ test_item#specification_name.; |
| 148 | CgreenTestcxx . . $ CgreenTest# *test_function = (CgreenTestcxx . . $ CgreenTest# *)(dlsymcxx . . $ dlsym(5c3a2d84d269ab4b).(handle, |
| 149 | specification_name)); |
| 150 | if ((error = dlerrorcxx . . $ dlerror(41208ce6ca65dd58).()) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 151 | PANICcxx . . $ `src/utils.h:14:9`!("Could not find specification_name symbol '%s'", |
| 152 | specification_name); |
| 153 | return -1; |
| 154 | } |
| 155 | |
| 156 | add_test_to_contextcxx . . $ add_test_to_context(ae670815293584f3).(suite, context_suites, get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(tests, i), test_function); |
| 157 | count++; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | return count; |
| 162 | } |
| 163 | |
| 164 | |
| 165 | /*----------------------------------------------------------------------*/ |
| 166 | static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! matching_test_existscxx . . $ matching_test_exists(845f4a104cec13e4).(const char *test_name, CgreenVectorcxx . . $ CgreenVector# *tests) { |
| 167 | for (int i = 0; i<cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(tests); i++) |
| 168 | if (test_matches_patterncxx . . $ test_matches_pattern(57b433dece09d28a).(test_name, get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(tests, i))) { |
| 169 | return truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 170 | } |
| 171 | return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 172 | } |
| 173 | |
| 174 | |
| 175 | /*----------------------------------------------------------------------*/ |
| 176 | static int countcxx . . $ count(84c976c9c52ff332).(CgreenVectorcxx . . $ CgreenVector# *vector) { |
| 177 | return cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(vector); |
| 178 | } |
| 179 | |
| 180 | /*----------------------------------------------------------------------*/ |
| 181 | static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! error_when_matchingcxx . . $ error_when_matching(83c267b20bac841a).(int number_of_matches) { |
| 182 | return number_of_matches < 0; |
| 183 | } |
| 184 | |
| 185 | |
| 186 | /*----------------------------------------------------------------------*/ |
| 187 | static int run_testscxx . . $ run_tests(6bc5a4aa57d6d29e).(TestReportercxx . . $ TestReporter# *reporter, |
| 188 | const char *suite_name, |
| 189 | const char *symbolic_name, |
| 190 | void *test_library_handle, |
| 191 | CgreenVectorcxx . . $ CgreenVector# *tests, |
| 192 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! verbose) { |
| 193 | int status; |
| 194 | ContextSuitecxx . . $ ContextSuite# *context_suites = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 195 | TestSuitecxx . . $ TestSuite# *suite = create_named_test_suitecxx . . $ `include/cgreen/suite.h:21:9`!(suite_name); |
| 196 | |
| 197 | const int number_of_matches = add_matching_tests_to_suitecxx . . $ add_matching_tests_to_suite(502a9001a5e1cfc7).(test_library_handle, |
| 198 | symbolic_name, |
| 199 | tests, |
| 200 | suite, |
| 201 | &context_suites); |
| 202 | if (error_when_matchingcxx . . $ error_when_matching(83c267b20bac841a).(number_of_matches)) |
| 203 | return EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:96:9`!; |
| 204 | |
| 205 | if (symbolic_name != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`! && number_of_matches == 1) { |
| 206 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! found = matching_test_existscxx . . $ matching_test_exists(845f4a104cec13e4).(symbolic_name, tests); |
| 207 | if (verbose) |
| 208 | printfcxx . . $ printf(581fddd72a8db8fc).(" to only run one test: '%s' ...\n", symbolic_name); |
| 209 | if (!found) { |
| 210 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:159:9`!, "ERROR: No such test: '%s' in '%s'\n", symbolic_name, suite_name); |
| 211 | return EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:96:9`!; |
| 212 | } |
| 213 | char *test_name = test_name_ofcxx . . $ test_name_of(a8b8e32347182212).(symbolic_name); |
| 214 | status = run_single_testcxx . . $ run_single_test(fc951a2ce7a72251).(suite, test_name, reporter); |
| 215 | freecxx . . $ free(5d22bdacc48458e8).(test_name); |
| 216 | } else { |
| 217 | if (verbose) { |
| 218 | if (number_of_matches != countcxx . . $ count(84c976c9c52ff332).(tests)) |
| 219 | printfcxx . . $ printf(581fddd72a8db8fc).(" to run %d matching tests ...\n", number_of_matches); |
| 220 | else |
| 221 | printfcxx . . $ printf(581fddd72a8db8fc).(" to run all %d discovered tests ...\n", countcxx . . $ count(84c976c9c52ff332).(tests)); |
| 222 | } |
| 223 | |
| 224 | if (number_of_matches > 0) |
| 225 | status = run_test_suitecxx . . $ run_test_suite(963404fcd5b06580).(suite, reporter); |
| 226 | else { |
| 227 | fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:159:9`!, "ERROR: No such test: '%s' in '%s'\n", symbolic_name, suite_name); |
| 228 | status = EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:96:9`!; |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | destroy_test_suitecxx . . $ destroy_test_suite(8fc5cbd6a65ffd2d).(suite); |
| 233 | destroy_context_suitescxx . . $ destroy_context_suites(81216f34e928c6bc).(context_suites); |
| 234 | return(status); |
| 235 | } |
| 236 | |
| 237 | |
| 238 | /*----------------------------------------------------------------------*/ |
| 239 | const char *test_name_of_elementcxx . . $ test_name_of_element(217e721a55f01af9).(CgreenVectorcxx . . $ CgreenVector# *tests, int index) { |
| 240 | return get_item_fromcxx . . $ get_item_from(2db3eae0e93aa759).(tests, index)->test_namecxx . . $ test_item#test_name.; |
| 241 | } |
| 242 | |
| 243 | /*----------------------------------------------------------------------*/ |
| 244 | static CgreenVectorcxx . . $ CgreenVector# *sorted_test_items_fromcxx . . $ sorted_test_items_from(c0d2b0aaae5c9a42).(CgreenVectorcxx . . $ CgreenVector# *test_items) { |
| 245 | CgreenVectorcxx . . $ CgreenVector# *sorted = create_cgreen_vectorcxx . . $ create_cgreen_vector(940ca2d138a76a1b).((GenericDestructorcxx . . $ GenericDestructor#)destroy_test_itemcxx . . $ destroy_test_item(ca46adf33924622e).); |
| 246 | while (cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(test_items) > 1) { |
| 247 | int smallest = 0; |
| 248 | const char *smallest_test_name = test_name_of_elementcxx . . $ test_name_of_element(217e721a55f01af9).(test_items, smallest); |
| 249 | for (int i=1; i<cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(test_items); i++) { |
| 250 | const char *current_test_name = test_name_of_elementcxx . . $ test_name_of_element(217e721a55f01af9).(test_items, i); |
| 251 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(smallest_test_name, current_test_name) > 0) { |
| 252 | smallest = i; |
| 253 | smallest_test_name = test_name_of_elementcxx . . $ test_name_of_element(217e721a55f01af9).(test_items, smallest); |
| 254 | } |
| 255 | } |
| 256 | cgreen_vector_addcxx . . $ cgreen_vector_add(77a2afb5bdbc2be1).(sorted, cgreen_vector_removecxx . . $ cgreen_vector_remove(4c520eb064247ba8).(test_items, smallest)); |
| 257 | } |
| 258 | if (cgreen_vector_sizecxx . . $ cgreen_vector_size(d6a9fa4a29061fe2).(test_items) == 1) { |
| 259 | cgreen_vector_addcxx . . $ cgreen_vector_add(77a2afb5bdbc2be1).(sorted, cgreen_vector_removecxx . . $ cgreen_vector_remove(4c520eb064247ba8).(test_items, 0)); |
| 260 | destroy_cgreen_vectorcxx . . $ destroy_cgreen_vector(fe9e7a16718af6c0).(test_items); |
| 261 | } |
| 262 | return sorted; |
| 263 | } |
| 264 | |
| 265 | /*----------------------------------------------------------------------*/ |
| 266 | static char *absolutecxx . . $ absolute(a8b8e32347182212).(const char *file_path) { |
| 267 | if (strchrcxx . . $ strchr(2050848944e00d54).("./", file_path[0]) != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) |
| 268 | return strdupcxx . . $ strdup(a8b8e32347182212).(file_path); |
| 269 | else { |
| 270 | char *tmp = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(strlencxx . . $ strlen(751346f8406fd082).(file_path)+3); |
| 271 | strcpycxx . . $ strcpy(b7b3a83273496486).(tmp, "./"); |
| 272 | strcatcxx . . $ strcat(b7b3a83273496486).(tmp, file_path); |
| 273 | return tmp; |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | |
| 278 | /*======================================================================*/ |
| 279 | int runnercxx . . $ runner(cb5228346a98b1de).(TestReportercxx . . $ TestReporter# *reporter, const char *test_library_name, |
| 280 | const char *suite_name, const char *test_name, |
| 281 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! verbose, boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! dont_run) { |
| 282 | int status = 0; |
| 283 | void *test_library_handle = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 284 | |
| 285 | CgreenVectorcxx . . $ CgreenVector# *tests = discover_tests_incxx . . $ discover_tests_in(58480c4ec9f8c8d).(test_library_name, verbose); |
| 286 | |
| 287 | if (countcxx . . $ count(84c976c9c52ff332).(tests) == 0) { |
| 288 | printfcxx . . $ printf(581fddd72a8db8fc).("No tests found in '%s'.\n", test_library_name); |
| 289 | return 1; |
| 290 | } |
| 291 | |
| 292 | if (verbose) |
| 293 | printfcxx . . $ printf(581fddd72a8db8fc).("Discovered %d test(s)\n", countcxx . . $ count(84c976c9c52ff332).(tests)); |
| 294 | |
| 295 | char *absolute_library_name = absolutecxx . . $ absolute(a8b8e32347182212).(test_library_name); |
| 296 | tests = sorted_test_items_fromcxx . . $ sorted_test_items_from(c0d2b0aaae5c9a42).(tests); |
| 297 | if (verbose) |
| 298 | printfcxx . . $ printf(581fddd72a8db8fc).("Opening [%s]", test_library_name); |
| 299 | test_library_handle = dlopencxx . . $ dlopen(fb9ec0bb113f3da8).(absolute_library_name, RTLD_NOWcxx . . $ `<external>/10632388298615623587/dlfcn.h:25:9`!); |
| 300 | if (test_library_handle == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) { |
| 301 | PANICcxx . . $ `src/utils.h:14:9`!("dlopen failure when trying to run '%s' (error: %s)\n", |
| 302 | absolute_library_name, dlerror()); |
| 303 | status = 2; |
| 304 | } else { |
| 305 | if (!dont_run) { |
| 306 | status = run_testscxx . . $ run_tests(6bc5a4aa57d6d29e).(reporter, suite_name, test_name, test_library_handle, |
| 307 | tests, verbose); |
| 308 | } |
| 309 | dlclosecxx . . $ dlclose(dedf1e9b1c614a07).(test_library_handle); |
| 310 | } |
| 311 | freecxx . . $ free(5d22bdacc48458e8).(absolute_library_name); |
| 312 | |
| 313 | destroy_cgreen_vectorcxx . . $ destroy_cgreen_vector(fe9e7a16718af6c0).(tests); |
| 314 | |
| 315 | return status; |
| 316 | } |