Roxen.git / server / etc / test / tests / userdbmodules / RoxenTest_userdbs.pike

version» Context lines:

Roxen.git/server/etc/test/tests/userdbmodules/RoxenTest_userdbs.pike:149:    return;    }          // 1: Do a few simple tests by calling the module directly.    array user_list = test_true( m->list_users );    array group_list = test_true( m->list_groups );          // 2: Test the interfaces in the config and module objects. - #if !constant(thread_create) -  report_notice("Threads not available, " -  "skipping thread related UserDB tests\n"); - #endif -  +     foreach( ({ m, c }), object o )    {    test( verify_user_list, user_list, o ); - #if constant(thread_create) +     do_thread_tests( o ); - #endif +     }       // 3: Test functions in config object    test_equal( m, c->find_user_database, "system" );             // 4: Test get/set interface in user objects       User u =