Lines Matching refs:suite
43 static TestSuite* suite = NULL; in getTestSuite() local
45 if (suite != NULL) { in getTestSuite()
46 return suite; in getTestSuite()
49 suite = calloc(1, sizeof(TestSuite)); in getTestSuite()
50 assert(suite != NULL); in getTestSuite()
52 suite->out = tmpfile(); in getTestSuite()
53 assert(suite->out != NULL); in getTestSuite()
55 return suite; in getTestSuite()
71 TestSuite* suite = getTestSuite(); in printFailures() local
74 failures, suite->size); in printFailures()
77 rewind(suite->out); in printFailures()
80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) { in printFailures()
88 TestSuite* suite = getTestSuite(); in runCurrentTest() local
93 suite->tests[suite->currentTest](); in runCurrentTest()
114 TestSuite* suite = getTestSuite(); in runTests() local
117 for (suite->currentTest = 0; suite->currentTest < suite->size; in runTests()
118 suite->currentTest++) { in runTests()
132 fprintf(suite->out, "Process failed: [%s] status: %d\n", in runTests()
133 suite->testNames[suite->currentTest], result); in runTests()
134 fflush(suite->out); in runTests()
146 printf("SUCCESS! %d tests ran successfully.\n", suite->size); in runTests()
152 TestSuite* suite = getTestSuite(); in assertTrueWithSource() local
154 fprintf(suite->out, "Assertion failed: [%s:%d] %s: %s\n", file, line, in assertTrueWithSource()
155 suite->testNames[suite->currentTest], message); in assertTrueWithSource()
156 fflush(suite->out); in assertTrueWithSource()