Changeset 1348:fa41c3d02042


Ignore:
Timestamp:
09/09/09 20:05:02 (2 years ago)
Author:
niam
Branch:
default
Message:

fixed tests

Location:
trunk/tests
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/cgi_test/test.cc

    r1345 r1348  
    120120                p.processFile("test.tpl", *io); 
    121121        } 
    122         catch (dodo::exception::basic ex) 
     122        catch (dodo::exception::basic &ex) 
    123123        { 
    124124                d.printString((dodoString)ex + " " + tools::string::lToString(ex.line) + " " + ex.file + " " + ex.message ); 
  • trunk/tests/cgifast_test/test.cc

    r1345 r1348  
    7575                p.processFile("test.tpl", *io); 
    7676        } 
    77         catch (dodo::exception::basic ex) 
     77        catch (dodo::exception::basic &ex) 
    7878        { 
    79                 ex.writeString(ex.errStr + " " + tools::string::lToString(ex.line)); 
     79                d.printString(ex.errStr + " " + tools::string::lToString(ex.line)); 
    8080        } 
    8181 
  • trunk/tests/dataformatjson_test/test.cc

    r1312 r1348  
    124124                cout << endl << json << endl; 
    125125        } 
    126         catch (dodo::exception::basic ex) 
     126        catch (dodo::exception::basic &ex) 
    127127        { 
    128128                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/dataformatxml_test/test.cc

    r1312 r1348  
    6666 
    6767        } 
    68         catch (dodo::exception::basic ex) 
     68        catch (dodo::exception::basic &ex) 
    6969        { 
    7070                cout << (dodoString)ex << "\t" << ex.line << endl; 
  • trunk/tests/db_test/test.cc

    r1312 r1348  
    223223                delete db; 
    224224        } 
    225         catch (dodo::exception::basic ex) 
     225        catch (dodo::exception::basic &ex) 
    226226        { 
    227227                cout << (dodoString)ex << endl << ex.file << endl << ex.message << endl << ex.line << endl << endl; 
  • trunk/tests/dbmysql_test/test.cc

    r1312 r1348  
    167167                } 
    168168        } 
    169         catch (dodo::exception::basic ex) 
     169        catch (dodo::exception::basic &ex) 
    170170        { 
    171171                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/dbpostgresql_test/test.cc

    r1312 r1348  
    106106 
    107107        } 
    108         catch (dodo::exception::basic ex) 
     108        catch (dodo::exception::basic &ex) 
    109109        { 
    110110                cout << (dodoString)ex << ex.line; 
  • trunk/tests/dbsqlite_test/test.cc

    r1312 r1348  
    111111 
    112112        } 
    113         catch (dodo::exception::basic ex) 
     113        catch (dodo::exception::basic &ex) 
    114114        { 
    115115                cout << (dodoString)ex << "\t" << ex.line << endl << endl; 
  • trunk/tests/image_test/test.cc

    r1319 r1348  
    3535                        transform::rotate(*img, transform::ROTATE_DIRECTION_ANGLE_180); 
    3636                } 
    37                 catch (dodo::exception::basic ex) 
     37                catch (dodo::exception::basic &ex) 
    3838                { 
    3939                        cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    135135#endif 
    136136        } 
    137         catch (dodo::exception::basic ex) 
     137        catch (dodo::exception::basic &ex) 
    138138        { 
    139139                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/iofile_toolsfilesystem_test/test.cc

    r1328 r1348  
    3131                } 
    3232        } 
    33         catch (dodo::exception::basic ex) 
     33        catch (dodo::exception::basic &ex) 
    3434        { 
    3535                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    9999                cout << "~~" << str << "~~" << endl << endl; 
    100100        } 
    101         catch (dodo::exception::basic ex) 
     101        catch (dodo::exception::basic &ex) 
    102102        { 
    103103                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/iomemory_test/test.cc

    r1328 r1348  
    5858                cout << io1 << endl; 
    5959        } 
    60         catch (dodo::exception::basic ex) 
     60        catch (dodo::exception::basic &ex) 
    6161        { 
    6262                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetwork_pcthreads_test/test.cc

    r1328 r1348  
    6464                        } 
    6565                } 
    66                 catch (dodo::exception::basic ex) 
     66                catch (dodo::exception::basic &ex) 
    6767                { 
    6868                        cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    8383                } 
    8484        } 
    85         catch (dodo::exception::basic ex) 
     85        catch (dodo::exception::basic &ex) 
    8686        { 
    8787                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    152152                manager.wait(); 
    153153        } 
    154         catch (dodo::exception::basic ex) 
     154        catch (dodo::exception::basic &ex) 
    155155        { 
    156156                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetworkclient_test/test.cc

    r1329 r1348  
    5050                cout << tools::misc::split(str, "\r\n\r\n")[0] << endl; 
    5151        } 
    52         catch (dodo::exception::basic ex) 
     52        catch (dodo::exception::basic &ex) 
    5353        { 
    5454                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetworkhttp_test/test.cc

    r1312 r1348  
    7171#endif 
    7272        } 
    73         catch (dodo::exception::basic ex) 
     73        catch (dodo::exception::basic &ex) 
    7474        { 
    7575                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetworkserver_test/test.cc

    r1328 r1348  
    5151                } 
    5252        } 
    53         catch (dodo::exception::basic ex) 
     53        catch (dodo::exception::basic &ex) 
    5454        { 
    5555                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    9595                } 
    9696        } 
    97         catch (dodo::exception::basic ex) 
     97        catch (dodo::exception::basic &ex) 
    9898        { 
    9999                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetworksslclient_test/test.cc

    r1329 r1348  
    6666#endif 
    6767        } 
    68         catch (dodo::exception::basic ex) 
     68        catch (dodo::exception::basic &ex) 
    6969        { 
    7070                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/ionetworksslserver_test/test.cc

    r1328 r1348  
    6161                } 
    6262        } 
    63         catch (dodo::exception::basic ex) 
     63        catch (dodo::exception::basic &ex) 
    6464        { 
    6565                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    104104#endif 
    105105        } 
    106         catch (dodo::exception::basic ex) 
     106        catch (dodo::exception::basic &ex) 
    107107        { 
    108108                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/iononblocked_ionetwork_test/test.cc

    r1312 r1348  
    6262 
    6363        } 
    64         catch (dodo::exception::basic ex) 
     64        catch (dodo::exception::basic &ex) 
    6565        { 
    6666                cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; 
  • trunk/tests/iononblocked_ionetworkssl_test/test.cc

    r1312 r1348  
    7676#endif 
    7777        } 
    78         catch (dodo::exception::basic ex) 
     78        catch (dodo::exception::basic &ex) 
    7979        { 
    8080                cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; 
  • trunk/tests/iopipe_iofilefifo_pcthreadcollection_test/test.cc

    r1319 r1348  
    3939                cout.flush(); 
    4040        } 
    41         catch (dodo::exception::basic ex) 
     41        catch (dodo::exception::basic &ex) 
    4242        { 
    4343                cout << (dodoString)ex << ex.line << endl; 
     
    7474                pipe->flush(); 
    7575        } 
    76         catch (dodo::exception::basic ex) 
     76        catch (dodo::exception::basic &ex) 
    7777        { 
    7878                cout << (dodoString)ex << ex.line << endl; 
     
    128128                threads.wait(); 
    129129        } 
    130         catch (dodo::exception::basic ex) 
     130        catch (dodo::exception::basic &ex) 
    131131        { 
    132132                cout << (dodoString)ex << ex.line << endl; 
  • trunk/tests/iostdio_test/test.cc

    r1321 r1348  
    7171                st.writeString("\nexiting\n"); 
    7272        } 
    73         catch (dodo::exception::basic ex) 
     73        catch (dodo::exception::basic &ex) 
    7474        { 
    7575                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/pcjobcollection_test/test.cc

    r1315 r1348  
    2727                cout.flush(); 
    2828        } 
    29         catch (dodo::exception::basic ex) 
     29        catch (dodo::exception::basic &ex) 
    3030        { 
    3131                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
     
    6969                        delete manager[i]; 
    7070        } 
    71         catch (dodo::exception::basic ex) 
     71        catch (dodo::exception::basic &ex) 
    7272        { 
    7373                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/pcprocesscollection_test/test.cc

    r1312 r1348  
    5151                cout << endl << shM << ": " << tools::time::now() << endl, cout.flush(); 
    5252        } 
    53         catch (dodo::exception::basic ex) 
     53        catch (dodo::exception::basic &ex) 
    5454        { 
    5555                cout << (dodoString)ex << ex.line << endl, cout.flush(); 
     
    8989                cout << endl << (char *)dt << ": " << tools::time::now() << endl, cout.flush(); 
    9090        } 
    91         catch (dodo::exception::basic ex) 
     91        catch (dodo::exception::basic &ex) 
    9292        { 
    9393                cout << (dodoString)ex << ex.line << endl, cout.flush(); 
     
    137137                data1.close(); 
    138138        } 
    139         catch (dodo::exception::basic ex) 
     139        catch (dodo::exception::basic &ex) 
    140140        { 
    141141                cout << (dodoString)ex << "\t" <<  ex.file << "\t" << ex.line << endl; 
     
    147147                data1.remove(key1); 
    148148        } 
    149         catch (dodo::exception::basic ex) 
     149        catch (dodo::exception::basic &ex) 
    150150        { 
    151151                cout << (dodoString)ex << "\t" <<  ex.file << "\t" << ex.line << endl; 
  • trunk/tests/pcthreadcollection_test/test.cc

    r1312 r1348  
    3636                cout.flush(); 
    3737        } 
    38         catch (dodo::exception::basic ex) 
     38        catch (dodo::exception::basic &ex) 
    3939        { 
    4040                cout << (dodoString)ex << ex.line << endl; 
     
    7676                delete data; 
    7777        } 
    78         catch (dodo::exception::basic ex) 
     78        catch (dodo::exception::basic &ex) 
    7979        { 
    8080                cout << (dodoString)ex << endl; 
  • trunk/tests/rpcjsoncgiserver_test/test.cc

    r1319 r1348  
    105105                srv.serve(); 
    106106        } 
    107         catch (dodo::exception::basic ex) 
     107        catch (dodo::exception::basic &ex) 
    108108        { 
    109109                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/rpcjsonhttpclient_test/test.cc

    r1319 r1348  
    131131                cout << "Second value: " << resp.value(1).string() << endl; 
    132132        } 
    133         catch (dodo::exception::basic ex) 
     133        catch (dodo::exception::basic &ex) 
    134134        { 
    135135                cout << (dodoString)ex << endl; 
  • trunk/tests/rpcxmlcgiserver_test/test.cc

    r1319 r1348  
    106106                srv.serve(); 
    107107        } 
    108         catch (dodo::exception::basic ex) 
     108        catch (dodo::exception::basic &ex) 
    109109        { 
    110110                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/rpcxmlhttpclient_test/test.cc

    r1319 r1348  
    131131                cout << "Second value: " << resp.value(1).string() << endl; 
    132132        } 
    133         catch (dodo::exception::basic ex) 
     133        catch (dodo::exception::basic &ex) 
    134134        { 
    135135                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/toolscode_test/test.cc

    r1312 r1348  
    9696#endif 
    9797        } 
    98         catch (dodo::exception::basic ex) 
     98        catch (dodo::exception::basic &ex) 
    9999        { 
    100100                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/toolslibrary_test/test.cc

    r1312 r1348  
    4343 
    4444        } 
    45         catch (dodo::exception::basic ex) 
     45        catch (dodo::exception::basic &ex) 
    4646        { 
    4747                cout << (dodoString)ex << "\t" << ex.line << endl; 
  • trunk/tests/toolslogger_test/test.cc

    r1312 r1348  
    5555                delete std; 
    5656        } 
    57         catch (dodo::exception::basic ex) 
     57        catch (dodo::exception::basic &ex) 
    5858        { 
    5959                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/toolsmisc_test/test.cc

    r1312 r1348  
    5454                cout << "Random:" << tools::code::MD5Hex(random) << endl; 
    5555        } 
    56         catch (dodo::exception::basic ex) 
     56        catch (dodo::exception::basic &ex) 
    5757        { 
    5858                cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/toolsnetwork_test/test.cc

    r1312 r1348  
    4141                                cout << ifaces[i] << ":\t" << network::interface(ifaces[i]).netmask << endl; 
    4242                        } 
    43                         catch (dodo::exception::basic ex) 
     43                        catch (dodo::exception::basic &ex) 
    4444                        { 
    4545                                cout << ifaces[i] << ":\t" << (std::string)ex << endl; 
     
    6262 
    6363        } 
    64         catch (dodo::exception::basic ex) 
     64        catch (dodo::exception::basic &ex) 
    6565        { 
    6666                cout << (std::string)ex << "\t" << ex.line << "\t" << ex.file << endl; 
  • trunk/tests/toolstime_test/test.cc

    r1246 r1348  
    2929                cout << tools::time::timestamp(tools::time::now()).sec << endl; 
    3030        } 
    31         catch (dodo::exception::basic ex) 
     31        catch (dodo::exception::basic &ex) 
    3232        { 
    3333                cout << (dodoString)ex << "\t" << ex.line << endl; 
  • trunk/tests/xexec_test/test.cc

    r1319 r1348  
    3737                io.flush(); 
    3838        } 
    39         catch (dodo::exception::basic ex) 
     39        catch (dodo::exception::basic &ex) 
    4040        { 
    4141                cout << (dodoString)ex << "\t" << ex.line << endl; 
Note: See TracChangeset for help on using the changeset viewer.