Changeset 205:05a60bb012d3 in verona
- Timestamp:
- May 25, 2011 11:13:42 AM (2 years ago)
- Branch:
- default
- Location:
- phtest
- Files:
-
- 2 edited
-
phtests_core.cpp (modified) (5 diffs)
-
phtests_priv.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
phtest/phtests_core.cpp
r150 r205 208 208 }; 209 209 210 myphapi testsphapi;210 myphapi *testsphapip; 211 211 212 212 struct testsFunc … … 226 226 funcTab = new testsFunc*[nbFunc]; 227 227 memset(funcTab, 0, nbFunc); 228 testsphapip = new myphapi; 228 229 } 229 230 230 231 phTestsCore::~phTestsCore() 231 232 { 233 delete testsphapip; 234 232 235 for (int i = 0; i < nbFunc && funcTab[i]; ++i) 233 236 delete funcTab[i]; … … 298 301 299 302 DBG_LOG("begin loop"); 300 testsphapi .conf(conf);303 testsphapip->conf(conf); 301 304 //test nbloop == -1 for infinite loop 302 305 //test (res || !conf->haltonerror) for halting if func return false … … 315 318 return res; 316 319 } 320 #if 0 317 321 #include <sstream> 318 322 std::ostringstream funcPath; … … 322 326 void phTestsCore::addToPath(int choosenFunc, int res) { funcPath << choosenFunc << "#" << res << ";"; } 323 327 328 #else 329 void phTestsCore::dumpPath() { } 330 331 void phTestsCore::addToPath(int choosenFunc, int res) { } 332 333 334 335 336 #endif -
phtest/phtests_priv.h
r131 r205 33 33 void onCallProgress(int cid, const phCallStateInfo_t *info); 34 34 }; 35 extern myphapi testsphapi; 35 extern myphapi *testsphapip; 36 #define testsphapi (*testsphapip) 37 36 38 37 39 #endif /*! TESTS_PRIV_H*/
Note: See TracChangeset
for help on using the changeset viewer.
