Changeset 1433ecda in mainline for uspace/lib/pcut/src/report/tap.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/report/tap.c

    r47b2d7e3 r1433ecda  
    5555 * @param all_items Start of the list with all items.
    5656 */
    57 static void tap_init(pcut_item_t *all_items) {
     57static void tap_init(pcut_item_t *all_items)
     58{
    5859        int tests_total = pcut_count_tests(all_items);
    5960        test_counter = 0;
     
    6768 * @param suite Suite that just started.
    6869 */
    69 static void tap_suite_start(pcut_item_t *suite) {
     70static void tap_suite_start(pcut_item_t *suite)
     71{
    7072        tests_in_suite = 0;
    7173        failed_tests_in_suite = 0;
     
    7880 * @param suite Suite that just ended.
    7981 */
    80 static void tap_suite_done(pcut_item_t *suite) {
     82static void tap_suite_done(pcut_item_t *suite)
     83{
    8184        if (failed_tests_in_suite == 0) {
    8285                printf("#> Finished suite %s (passed).\n",
    83                                 suite->name);
     86                    suite->name);
    8487        } else {
    8588                printf("#> Finished suite %s (failed %d of %d).\n",
    86                                 suite->name, failed_tests_in_suite, tests_in_suite);
     89                    suite->name, failed_tests_in_suite, tests_in_suite);
    8790        }
    8891}
     
    9497 * @param test Test that is started.
    9598 */
    96 static void tap_test_start(pcut_item_t *test) {
     99static void tap_test_start(pcut_item_t *test)
     100{
    97101        PCUT_UNUSED(test);
    98102
     
    106110 * @param prefix Prefix for each new line, such as comment character.
    107111 */
    108 static void print_by_lines(const char *message, const char *prefix) {
     112static void print_by_lines(const char *message, const char *prefix)
     113{
    109114        char *next_line_start;
    110115        if ((message == NULL) || (message[0] == 0)) {
     
    132137 */
    133138static void tap_test_done(pcut_item_t *test, int outcome,
    134                 const char *error_message, const char *teardown_error_message,
    135                 const char *extra_output) {
     139    const char *error_message, const char *teardown_error_message,
     140    const char *extra_output)
     141{
    136142        const char *test_name = test->name;
    137143        const char *status_str = NULL;
     
    166172
    167173/** Report testing done. */
    168 static void tap_done(void) {
     174static void tap_done(void)
     175{
    169176        if (failed_test_counter == 0) {
    170177                printf("#> Done: all tests passed.\n");
Note: See TracChangeset for help on using the changeset viewer.