Changeset 14657


Ignore:
Timestamp:
Jan 3, 2016, 9:03:54 PM (5 years ago)
Author:
mikedld
Message:

Uncomment error prefixing tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/error-test.c

    r14369 r14657  
    1818  tr_error * err = NULL;
    1919
    20 #if 0
    21 
    2220  tr_error_prefix (&err, "error: ");
    2321  check (err == NULL);
    24 
    25 #endif /* 0 */
    2622
    2723  tr_error_set (&err, 1, "error: %s (%d)", "oops", 2);
     
    3733  check_streq ("oops", err->message);
    3834
    39 #if 0
    40 
    4135  tr_error_prefix (&err, "error: ");
    4236  check (err != NULL);
    4337  check_int_eq (2, err->code);
    4438  check_streq ("error: oops", err->message);
    45 
    46 #endif /* 0 */
    4739
    4840  tr_error_free (err);
     
    6860  check (err == NULL);
    6961
    70 #if 0
    71 
    7262  tr_error_propagate_prefixed (&err, &err2, "error: ");
    7363  check (err != NULL);
     
    7868  tr_error_propagate (NULL, &err);
    7969  check (err == NULL);
    80 
    81 #endif /* 0 */
    8270
    8371  tr_error_free (err2);
Note: See TracChangeset for help on using the changeset viewer.