Changeset 5737


Ignore:
Timestamp:
May 1, 2008, 7:30:49 PM (14 years ago)
Author:
charles
Message:

tweak the clients tests

File:
1 edited

Legend:

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

    r5723 r5737  
    1919}
    2020
     21#define TEST_CLIENT(A,B) \
     22  tr_clientForId( buf, sizeof( buf ), A ); \
     23  check( !strcmp( buf, B ) );
     24
    2125int
    2226main( void )
     
    2529    char buf[128];
    2630
    27     tr_clientForId( buf, sizeof( buf ), "-FC1013-" ); check( !strcmp( buf, "FileCroc 1.0.1.3" ) );
    28     tr_clientForId( buf, sizeof( buf ), "-MR1100-" ); check( !strcmp( buf, "Miro 1.1.0.0" ) );
    29     tr_clientForId( buf, sizeof( buf ), "-TR0006-" ); check( !strcmp( buf, "Transmission 0.6" ) );
    30     tr_clientForId( buf, sizeof( buf ), "-TR0072-" ); check( !strcmp( buf, "Transmission 0.72" ) );
    31     tr_clientForId( buf, sizeof( buf ), "-TR111Z-" ); check( !strcmp( buf, "Transmission 1.11 (Dev)" ) );
     31    TEST_CLIENT( "-FC1013-", "FileCroc 1.0.1.3" );
     32    TEST_CLIENT( "-MR1100-", "Miro 1.1.0.0" );
     33    TEST_CLIENT( "-TR0006-", "Transmission 0.6" );
     34    TEST_CLIENT( "-TR0072-", "Transmission 0.72" );
     35    TEST_CLIENT( "-TR111Z-", "Transmission 1.11+" );
    3236
    3337    /* cleanup */
Note: See TracChangeset for help on using the changeset viewer.