Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/main.c


Ignore:
Timestamp:
2018-09-12T13:23:03Z (7 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3da0ee4
Parents:
275530a4
Message:

Update PCUT to latest revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/main.c

    r275530a4 r4b54bd9  
    3434#include "internal.h"
    3535#include "report/report.h"
     36
     37#pragma warning(push, 0)
    3638#include <assert.h>
    3739#include <stdlib.h>
    3840#include <stdio.h>
     41#pragma warning(pop)
     42
    3943
    4044/** Current running mode. */
     
    5761 * @return Whether @p arg is @p opt followed by a number.
    5862 */
    59 int pcut_is_arg_with_number(const char *arg, const char *opt, int *value)
    60 {
     63int pcut_is_arg_with_number(const char *arg, const char *opt, int *value) {
    6164        int opt_len = pcut_str_size(opt);
    62         if (!pcut_str_start_equals(arg, opt, opt_len)) {
     65        if (! pcut_str_start_equals(arg, opt, opt_len)) {
    6366                return 0;
    6467        }
     
    7578 * @retval NULL No item with such id exists in the list.
    7679 */
    77 static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id)
    78 {
     80static pcut_item_t *pcut_find_by_id(pcut_item_t *first, int id) {
    7981        pcut_item_t *it = pcut_get_real(first);
    8082        while (it != NULL) {
     
    9496 * @return Error code.
    9597 */
    96 static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path)
    97 {
     98static int run_suite(pcut_item_t *suite, pcut_item_t **last, const char *prog_path) {
    9899        int is_first_test = 1;
    99100        int total_count = 0;
     
    159160 * @param first First item of the list.
    160161 */
    161 static void set_setup_teardown_callbacks(pcut_item_t *first)
    162 {
     162static void set_setup_teardown_callbacks(pcut_item_t *first) {
    163163        pcut_item_t *active_suite = NULL;
    164164        pcut_item_t *it;
     
    192192 * @return Program exit code.
    193193 */
    194 int pcut_main(pcut_item_t *last, int argc, char *argv[])
    195 {
     194int pcut_main(pcut_item_t *last, int argc, char *argv[]) {
    196195        pcut_item_t *items = pcut_fix_list_get_real_head(last);
    197196        pcut_item_t *it;
Note: See TracChangeset for help on using the changeset viewer.