Lines Matching refs:test_results
74 test_results_t test_results = {{0},
79 stats_to_buffer(test_results.stats_before_allocations);
81 snprintf(test_results.threads[0], MAX_TID_LEN, "%d", (pid_t) syscall(__NR_gettid));
87 stats_to_buffer(test_results.stats_after_allocations);
91 stats_to_buffer(test_results.stats_after_free);
92 return test_results;
97 test_results_t test_results = {{0},
102 stats_to_buffer(test_results.stats_before_allocations);
105 return test_results;
108 return test_results;
122 snprintf(test_results.threads[i], MAX_TID_LEN, "%d", thread_data[i].self_id);
124 stats_to_buffer(test_results.stats_after_allocations);
130 stats_to_buffer(test_results.stats_after_free);
131 return test_results;
143 static int validate_main_thread_test_results(test_results_t *test_results)
148 populate_thread_stats(test_results->stats_before_allocations, test_results->threads[0], &stats_before_allocations);
149 populate_thread_stats(test_results->stats_after_allocations, test_results->threads[0], &stats_after_allocations);
150 populate_thread_stats(test_results->stats_after_free, test_results->threads[0], &stats_after_free);
169 static int validate_different_threads_test_results(test_results_t *test_results)
174 result &= populate_thread_stats(test_results->stats_after_allocations, test_results->threads[i], &thread_stats);
176 if (is_thread_in_output(test_results->stats_after_free, test_results->threads[i])) {
177 t_error("Thread %s did not disappear from output\n", test_results->threads[i]);
184 result &= populate_total_free_heap_space(test_results->stats_after_allocations, &free_heap_space_after_allocations);
185 result &= populate_total_free_heap_space(test_results->stats_after_free, &free_heap_space_after_free);
195 test_results_t *test_results,
200 if (!validate_test_results_func(test_results)) {