int main(void) { bool ret = true; talloc_disable_null_tracking(); talloc_enable_null_tracking(); ret &= test_ref1(); ret &= test_ref2(); ret &= test_ref3(); ret &= test_ref4(); ret &= test_unlink1(); ret &= test_misc(); ret &= test_realloc(); ret &= test_realloc_child(); ret &= test_steal(); ret &= test_move(); ret &= test_unref_reparent(); ret &= test_realloc_fn(); ret &= test_type(); ret &= test_lifeless(); ret &= test_loop(); ret &= test_free_parent_deny_child(); ret &= test_talloc_ptrtype(); if (ret) { ret &= test_speed(); } ret &= test_autofree(); if (!ret) return -1; return 0; }
int main (int argc, char *argv[]) { test_reverse_copy(); test_ipv4_mapped(); test_btc_decimals(); test_misc(); test_shuffle(); return 0; }
static void run_tests() { test_misc(); test_insert(); test_remove(); test_clear(); test_extend(); test_circular(); }
int main() { test_misc(); test_clear(); test_update(); test_circular(); return 0; }
static int test_common(void) { int ret = 0; ret |= test_align(); ret |= test_macros(0); ret |= test_misc(); ret |= test_log2(); return ret; }
void test_all(Ardb& db) { test_strings(db); test_hashs(db); test_lists(db); test_sets(db); test_zsets(db); test_tables(db); test_bitsets(db); test_misc(db); }
static void run_tests() { test_misc(); test_clear(); test_update(); test_conditional_updates(); test_circular(); test_set_nocheck(); test_iterators(); test_preserve_order(); test_object_foreach(); }
int main(int argc, char ** argv) { string path = "/Users/andreasfragner/Desktop/"; // TEST STACK DIRECTION (misc.hpp) StackDirection(&argc); // SEARCH testSearch(); // SEEDS srand( int(time(NULL)) ); // TESTS/SPECS BitTest mytest; mytest.run(); // RANDOM testRandom(); // DATA STRUCTURES test_SL(); test_Stack(); test_Queue(); TowersOfHanoi(10); // NUMERICAL test_Numerical(); // PRIMES test_primes(); // SORT test_sort(); // MISC test_misc(); cout << "\n\n\n\n-----------------------------"<<endl; cout << "-----------------------------"<<endl; return 0; }
int main() { test_misc(); test_clear(); test_update(); test_circular(); test_set_nocheck(); test_iterators(); test_preserve_order(); return 0; }
int main(void) { krb5_context context; krb5_error_code kret; if ((kret = krb5_init_context(&context))) { printf("Couldn't initialize krb5 library: %s\n", error_message(kret)); exit(1); } kret = krb5_cc_register(context, &krb5_mcc_ops,0); if(kret && kret != KRB5_CC_TYPE_EXISTS) { CHECK(kret, "register_mem"); } kret = krb5_cc_register(context, &krb5_fcc_ops,0); if(kret && kret != KRB5_CC_TYPE_EXISTS) { CHECK(kret, "register_mem"); } /* Registering a second time tests for error return */ kret = krb5_cc_register(context, &krb5_fcc_ops,0); if(kret != KRB5_CC_TYPE_EXISTS) { CHECK(kret, "register_mem"); } /* Registering with override should work */ kret = krb5_cc_register(context, &krb5_fcc_ops,1); CHECK(kret, "register_mem override"); init_structs(); test_misc(context); do_test(context, ""); if(check_registered(context, "KEYRING:")) do_test(context, "KEYRING:"); else printf("Skiping KEYRING: test - unregistered type\n"); do_test(context, "MEMORY:"); do_test(context, "FILE:"); krb5_free_context(context); return 0; }
/*------------------------------------------------------------------------- * Function: main * * Purpose: Test groups * * Return: Success: zero * * Failure: non-zero * * Programmer: Robb Matzke * Tuesday, November 24, 1998 * * Modifications: * *------------------------------------------------------------------------- */ int main(void) { hid_t fapl, fcpl, file; int nerrors=0; char filename[1024]; /* Reset library */ h5_reset(); fapl = h5_fileaccess(); /* * Use larger symbol table data structures to be more efficient, use * defaults to bang harder on the library for testing. */ fcpl = H5Pcreate(H5P_FILE_CREATE); #if 0 H5Pset_sym_k(fcpl, 16, 16); #endif /* Open the file */ h5_fixname(FILENAME[0], fapl, filename, sizeof filename); if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl))<0) goto error; /* Perform tests */ nerrors += test_misc(file); nerrors += test_long(file); nerrors += test_large(file); nerrors += read_new(fapl); if (nerrors) goto error; /* Cleanup */ H5Fclose(file); puts("All symbol table tests passed."); h5_cleanup(FILENAME, fapl); return 0; error: puts("*** TESTS FAILED ***"); return 1; }
bool torture_local_talloc(struct torture_context *tctx) { bool ret = true; setlinebuf(stdout); talloc_disable_null_tracking(); talloc_enable_null_tracking(); ret &= test_ref1(); ret &= test_ref2(); ret &= test_ref3(); ret &= test_ref4(); ret &= test_unlink1(); ret &= test_misc(); ret &= test_realloc(); ret &= test_realloc_child(); ret &= test_steal(); ret &= test_move(); ret &= test_unref_reparent(); ret &= test_realloc_fn(); ret &= test_type(); ret &= test_lifeless(); ret &= test_loop(); ret &= test_free_parent_deny_child(); ret &= test_talloc_ptrtype(); ret &= test_talloc_free_in_destructor(); ret &= test_pool(); if (ret) { ret &= test_speed(); } ret &= test_autofree(); return ret; }
int main (int argc, char **argv) { int leaked, i; TestWindow *win; const char *modules; AccessibleEventListener *global_listener; modules = g_getenv ("GTK_MODULES"); if (!modules || modules [0] == '\0') putenv ("GTK_MODULES=gail:atk-bridge"); modules = NULL; for (i = 1; i < argc; i++) { if (!g_strcasecmp (argv [i], "--poke")) do_poke = TRUE; } gtk_init (&argc, &argv); g_assert (!SPI_init ()); g_assert (SPI_init ()); g_assert (SPI_getDesktopCount () == 1); test_roles (); test_misc (); test_desktop (); test_keylisteners (); win = create_test_window (); global_listener = SPI_createAccessibleEventListener (global_listener_cb, win); g_assert (SPI_registerGlobalEventListener (global_listener, "focus:")); fprintf (stderr, "Waiting for focus event ...\n"); gtk_main (); g_assert (SPI_deregisterGlobalEventListenerAll (global_listener)); AccessibleEventListener_unref (global_listener); test_window_destroy (win); /* Wait for any pending events from the registry */ g_usleep (500*1000); for (i = 0; i < 100; i++) dbus_connection_read_write_dispatch (SPI_bus(), 5); if ((leaked = SPI_exit ())) g_error ("Leaked %d SPI handles", leaked); g_assert (!SPI_exit ()); fprintf (stderr, "All tests passed\n"); if (g_getenv ("_MEMPROF_SOCKET")) { fprintf (stderr, "Waiting for memprof\n"); gtk_main (); } putenv ("AT_BRIDGE_SHUTDOWN=1"); return 0; }