Changeset 1348:fa41c3d02042
- Timestamp:
- 09/09/09 20:05:02 (2 years ago)
- Branch:
- default
- Location:
- trunk/tests
- Files:
-
- 35 edited
-
cgi_test/test.cc (modified) (1 diff)
-
cgifast_test/test.cc (modified) (1 diff)
-
dataformatjson_test/test.cc (modified) (1 diff)
-
dataformatxml_test/test.cc (modified) (1 diff)
-
db_test/test.cc (modified) (1 diff)
-
dbmysql_test/test.cc (modified) (1 diff)
-
dbpostgresql_test/test.cc (modified) (1 diff)
-
dbsqlite_test/test.cc (modified) (1 diff)
-
image_test/test.cc (modified) (2 diffs)
-
iofile_toolsfilesystem_test/test.cc (modified) (2 diffs)
-
iomemory_test/test.cc (modified) (1 diff)
-
ionetwork_pcthreads_test/test.cc (modified) (3 diffs)
-
ionetworkclient_test/test.cc (modified) (1 diff)
-
ionetworkhttp_test/test.cc (modified) (1 diff)
-
ionetworkserver_test/test.cc (modified) (2 diffs)
-
ionetworksslclient_test/test.cc (modified) (1 diff)
-
ionetworksslserver_test/test.cc (modified) (2 diffs)
-
iononblocked_ionetwork_test/test.cc (modified) (1 diff)
-
iononblocked_ionetworkssl_test/test.cc (modified) (1 diff)
-
iopipe_iofilefifo_pcthreadcollection_test/test.cc (modified) (3 diffs)
-
iostdio_test/test.cc (modified) (1 diff)
-
pcjobcollection_test/test.cc (modified) (2 diffs)
-
pcprocesscollection_test/test.cc (modified) (4 diffs)
-
pcthreadcollection_test/test.cc (modified) (2 diffs)
-
rpcjsoncgiserver_test/test.cc (modified) (1 diff)
-
rpcjsonhttpclient_test/test.cc (modified) (1 diff)
-
rpcxmlcgiserver_test/test.cc (modified) (1 diff)
-
rpcxmlhttpclient_test/test.cc (modified) (1 diff)
-
toolscode_test/test.cc (modified) (1 diff)
-
toolslibrary_test/test.cc (modified) (1 diff)
-
toolslogger_test/test.cc (modified) (1 diff)
-
toolsmisc_test/test.cc (modified) (1 diff)
-
toolsnetwork_test/test.cc (modified) (2 diffs)
-
toolstime_test/test.cc (modified) (1 diff)
-
xexec_test/test.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/cgi_test/test.cc
r1345 r1348 120 120 p.processFile("test.tpl", *io); 121 121 } 122 catch (dodo::exception::basic ex)122 catch (dodo::exception::basic &ex) 123 123 { 124 124 d.printString((dodoString)ex + " " + tools::string::lToString(ex.line) + " " + ex.file + " " + ex.message ); -
trunk/tests/cgifast_test/test.cc
r1345 r1348 75 75 p.processFile("test.tpl", *io); 76 76 } 77 catch (dodo::exception::basic ex)77 catch (dodo::exception::basic &ex) 78 78 { 79 ex.writeString(ex.errStr + " " + tools::string::lToString(ex.line));79 d.printString(ex.errStr + " " + tools::string::lToString(ex.line)); 80 80 } 81 81 -
trunk/tests/dataformatjson_test/test.cc
r1312 r1348 124 124 cout << endl << json << endl; 125 125 } 126 catch (dodo::exception::basic ex)126 catch (dodo::exception::basic &ex) 127 127 { 128 128 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/dataformatxml_test/test.cc
r1312 r1348 66 66 67 67 } 68 catch (dodo::exception::basic ex)68 catch (dodo::exception::basic &ex) 69 69 { 70 70 cout << (dodoString)ex << "\t" << ex.line << endl; -
trunk/tests/db_test/test.cc
r1312 r1348 223 223 delete db; 224 224 } 225 catch (dodo::exception::basic ex)225 catch (dodo::exception::basic &ex) 226 226 { 227 227 cout << (dodoString)ex << endl << ex.file << endl << ex.message << endl << ex.line << endl << endl; -
trunk/tests/dbmysql_test/test.cc
r1312 r1348 167 167 } 168 168 } 169 catch (dodo::exception::basic ex)169 catch (dodo::exception::basic &ex) 170 170 { 171 171 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/dbpostgresql_test/test.cc
r1312 r1348 106 106 107 107 } 108 catch (dodo::exception::basic ex)108 catch (dodo::exception::basic &ex) 109 109 { 110 110 cout << (dodoString)ex << ex.line; -
trunk/tests/dbsqlite_test/test.cc
r1312 r1348 111 111 112 112 } 113 catch (dodo::exception::basic ex)113 catch (dodo::exception::basic &ex) 114 114 { 115 115 cout << (dodoString)ex << "\t" << ex.line << endl << endl; -
trunk/tests/image_test/test.cc
r1319 r1348 35 35 transform::rotate(*img, transform::ROTATE_DIRECTION_ANGLE_180); 36 36 } 37 catch (dodo::exception::basic ex)37 catch (dodo::exception::basic &ex) 38 38 { 39 39 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 135 135 #endif 136 136 } 137 catch (dodo::exception::basic ex)137 catch (dodo::exception::basic &ex) 138 138 { 139 139 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/iofile_toolsfilesystem_test/test.cc
r1328 r1348 31 31 } 32 32 } 33 catch (dodo::exception::basic ex)33 catch (dodo::exception::basic &ex) 34 34 { 35 35 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 99 99 cout << "~~" << str << "~~" << endl << endl; 100 100 } 101 catch (dodo::exception::basic ex)101 catch (dodo::exception::basic &ex) 102 102 { 103 103 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/iomemory_test/test.cc
r1328 r1348 58 58 cout << io1 << endl; 59 59 } 60 catch (dodo::exception::basic ex)60 catch (dodo::exception::basic &ex) 61 61 { 62 62 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetwork_pcthreads_test/test.cc
r1328 r1348 64 64 } 65 65 } 66 catch (dodo::exception::basic ex)66 catch (dodo::exception::basic &ex) 67 67 { 68 68 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 83 83 } 84 84 } 85 catch (dodo::exception::basic ex)85 catch (dodo::exception::basic &ex) 86 86 { 87 87 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 152 152 manager.wait(); 153 153 } 154 catch (dodo::exception::basic ex)154 catch (dodo::exception::basic &ex) 155 155 { 156 156 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetworkclient_test/test.cc
r1329 r1348 50 50 cout << tools::misc::split(str, "\r\n\r\n")[0] << endl; 51 51 } 52 catch (dodo::exception::basic ex)52 catch (dodo::exception::basic &ex) 53 53 { 54 54 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetworkhttp_test/test.cc
r1312 r1348 71 71 #endif 72 72 } 73 catch (dodo::exception::basic ex)73 catch (dodo::exception::basic &ex) 74 74 { 75 75 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetworkserver_test/test.cc
r1328 r1348 51 51 } 52 52 } 53 catch (dodo::exception::basic ex)53 catch (dodo::exception::basic &ex) 54 54 { 55 55 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 95 95 } 96 96 } 97 catch (dodo::exception::basic ex)97 catch (dodo::exception::basic &ex) 98 98 { 99 99 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetworksslclient_test/test.cc
r1329 r1348 66 66 #endif 67 67 } 68 catch (dodo::exception::basic ex)68 catch (dodo::exception::basic &ex) 69 69 { 70 70 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/ionetworksslserver_test/test.cc
r1328 r1348 61 61 } 62 62 } 63 catch (dodo::exception::basic ex)63 catch (dodo::exception::basic &ex) 64 64 { 65 65 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 104 104 #endif 105 105 } 106 catch (dodo::exception::basic ex)106 catch (dodo::exception::basic &ex) 107 107 { 108 108 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/iononblocked_ionetwork_test/test.cc
r1312 r1348 62 62 63 63 } 64 catch (dodo::exception::basic ex)64 catch (dodo::exception::basic &ex) 65 65 { 66 66 cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; -
trunk/tests/iononblocked_ionetworkssl_test/test.cc
r1312 r1348 76 76 #endif 77 77 } 78 catch (dodo::exception::basic ex)78 catch (dodo::exception::basic &ex) 79 79 { 80 80 cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; -
trunk/tests/iopipe_iofilefifo_pcthreadcollection_test/test.cc
r1319 r1348 39 39 cout.flush(); 40 40 } 41 catch (dodo::exception::basic ex)41 catch (dodo::exception::basic &ex) 42 42 { 43 43 cout << (dodoString)ex << ex.line << endl; … … 74 74 pipe->flush(); 75 75 } 76 catch (dodo::exception::basic ex)76 catch (dodo::exception::basic &ex) 77 77 { 78 78 cout << (dodoString)ex << ex.line << endl; … … 128 128 threads.wait(); 129 129 } 130 catch (dodo::exception::basic ex)130 catch (dodo::exception::basic &ex) 131 131 { 132 132 cout << (dodoString)ex << ex.line << endl; -
trunk/tests/iostdio_test/test.cc
r1321 r1348 71 71 st.writeString("\nexiting\n"); 72 72 } 73 catch (dodo::exception::basic ex)73 catch (dodo::exception::basic &ex) 74 74 { 75 75 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/pcjobcollection_test/test.cc
r1315 r1348 27 27 cout.flush(); 28 28 } 29 catch (dodo::exception::basic ex)29 catch (dodo::exception::basic &ex) 30 30 { 31 31 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; … … 69 69 delete manager[i]; 70 70 } 71 catch (dodo::exception::basic ex)71 catch (dodo::exception::basic &ex) 72 72 { 73 73 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/pcprocesscollection_test/test.cc
r1312 r1348 51 51 cout << endl << shM << ": " << tools::time::now() << endl, cout.flush(); 52 52 } 53 catch (dodo::exception::basic ex)53 catch (dodo::exception::basic &ex) 54 54 { 55 55 cout << (dodoString)ex << ex.line << endl, cout.flush(); … … 89 89 cout << endl << (char *)dt << ": " << tools::time::now() << endl, cout.flush(); 90 90 } 91 catch (dodo::exception::basic ex)91 catch (dodo::exception::basic &ex) 92 92 { 93 93 cout << (dodoString)ex << ex.line << endl, cout.flush(); … … 137 137 data1.close(); 138 138 } 139 catch (dodo::exception::basic ex)139 catch (dodo::exception::basic &ex) 140 140 { 141 141 cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; … … 147 147 data1.remove(key1); 148 148 } 149 catch (dodo::exception::basic ex)149 catch (dodo::exception::basic &ex) 150 150 { 151 151 cout << (dodoString)ex << "\t" << ex.file << "\t" << ex.line << endl; -
trunk/tests/pcthreadcollection_test/test.cc
r1312 r1348 36 36 cout.flush(); 37 37 } 38 catch (dodo::exception::basic ex)38 catch (dodo::exception::basic &ex) 39 39 { 40 40 cout << (dodoString)ex << ex.line << endl; … … 76 76 delete data; 77 77 } 78 catch (dodo::exception::basic ex)78 catch (dodo::exception::basic &ex) 79 79 { 80 80 cout << (dodoString)ex << endl; -
trunk/tests/rpcjsoncgiserver_test/test.cc
r1319 r1348 105 105 srv.serve(); 106 106 } 107 catch (dodo::exception::basic ex)107 catch (dodo::exception::basic &ex) 108 108 { 109 109 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/rpcjsonhttpclient_test/test.cc
r1319 r1348 131 131 cout << "Second value: " << resp.value(1).string() << endl; 132 132 } 133 catch (dodo::exception::basic ex)133 catch (dodo::exception::basic &ex) 134 134 { 135 135 cout << (dodoString)ex << endl; -
trunk/tests/rpcxmlcgiserver_test/test.cc
r1319 r1348 106 106 srv.serve(); 107 107 } 108 catch (dodo::exception::basic ex)108 catch (dodo::exception::basic &ex) 109 109 { 110 110 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/rpcxmlhttpclient_test/test.cc
r1319 r1348 131 131 cout << "Second value: " << resp.value(1).string() << endl; 132 132 } 133 catch (dodo::exception::basic ex)133 catch (dodo::exception::basic &ex) 134 134 { 135 135 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/toolscode_test/test.cc
r1312 r1348 96 96 #endif 97 97 } 98 catch (dodo::exception::basic ex)98 catch (dodo::exception::basic &ex) 99 99 { 100 100 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/toolslibrary_test/test.cc
r1312 r1348 43 43 44 44 } 45 catch (dodo::exception::basic ex)45 catch (dodo::exception::basic &ex) 46 46 { 47 47 cout << (dodoString)ex << "\t" << ex.line << endl; -
trunk/tests/toolslogger_test/test.cc
r1312 r1348 55 55 delete std; 56 56 } 57 catch (dodo::exception::basic ex)57 catch (dodo::exception::basic &ex) 58 58 { 59 59 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/toolsmisc_test/test.cc
r1312 r1348 54 54 cout << "Random:" << tools::code::MD5Hex(random) << endl; 55 55 } 56 catch (dodo::exception::basic ex)56 catch (dodo::exception::basic &ex) 57 57 { 58 58 cout << (dodoString)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/toolsnetwork_test/test.cc
r1312 r1348 41 41 cout << ifaces[i] << ":\t" << network::interface(ifaces[i]).netmask << endl; 42 42 } 43 catch (dodo::exception::basic ex)43 catch (dodo::exception::basic &ex) 44 44 { 45 45 cout << ifaces[i] << ":\t" << (std::string)ex << endl; … … 62 62 63 63 } 64 catch (dodo::exception::basic ex)64 catch (dodo::exception::basic &ex) 65 65 { 66 66 cout << (std::string)ex << "\t" << ex.line << "\t" << ex.file << endl; -
trunk/tests/toolstime_test/test.cc
r1246 r1348 29 29 cout << tools::time::timestamp(tools::time::now()).sec << endl; 30 30 } 31 catch (dodo::exception::basic ex)31 catch (dodo::exception::basic &ex) 32 32 { 33 33 cout << (dodoString)ex << "\t" << ex.line << endl; -
trunk/tests/xexec_test/test.cc
r1319 r1348 37 37 io.flush(); 38 38 } 39 catch (dodo::exception::basic ex)39 catch (dodo::exception::basic &ex) 40 40 { 41 41 cout << (dodoString)ex << "\t" << ex.line << endl;
Note: See TracChangeset
for help on using the changeset viewer.
