X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_crypto%2Ftest_blowfish_crypto.cpp;h=4ae10ecd62fa3ef1946ed39e8362cf2950726910;hb=ea399ea4e4135ab47c931e5c3adaece7d0cf9ec3;hp=e6fdd4b04526089688aa14719b1bf2ac3d375db4;hpb=3ea085ec301ed1399dfa1e9f3a240312dc95410b;p=feisty_meow.git diff --git a/nucleus/library/tests_crypto/test_blowfish_crypto.cpp b/nucleus/library/tests_crypto/test_blowfish_crypto.cpp index e6fdd4b0..4ae10ecd 100644 --- a/nucleus/library/tests_crypto/test_blowfish_crypto.cpp +++ b/nucleus/library/tests_crypto/test_blowfish_crypto.cpp @@ -43,7 +43,7 @@ using namespace unit_test; #define LOG(to_print) EMERGENCY_LOG(program_wide_logger::get(), to_print) -//#define DEBUG_BLOWFISH +#define DEBUG_BLOWFISH // uncomment for noisier run. const int TEST_RUNS_PER_KEY = 5; // encryption test cycles done on each key. @@ -91,11 +91,21 @@ private: int test_blowfish::execute() { FUNCDEF("execute"); +#ifdef DEBUG_BLOWFISH + LOG(astring("starting blowfish test...")); +#endif int left = THREAD_COUNT; while (left--) { - _threads.add_thread(new blowfish_thread(*this), true, NIL); +#ifdef DEBUG_BLOWFISH + LOG(a_sprintf("blowfish thread %d starting...", left)); +#endif + _threads.add_thread(new blowfish_thread(*this), true, NULL_POINTER); } +#ifdef DEBUG_BLOWFISH + LOG(astring("started all threads...")); +#endif + while (_threads.threads()) { #ifdef DEBUG_BLOWFISH LOG(astring("cleaning debris."));