int main(void) { /* test_guarded_memcpy(); */ test_typesizes(); test_carray_typedef(); printf("per: %d %d file\n", 3, 45); test_sscanf("010.001.001.008"); test_sscanf("10.1.1.8"); test_print(); test_fd(); test_ieee754(); test_stackpp(); test_signs(); test_pathparseSRCV_cstr("gimp-2.0.tar.bz2"); test_pathparseSRCV_cstr("gimp-2.0.1.tar.bz2"); test_pathparseSRCV_cstr("gimp-2.0.1beta1.tar.bz2"); test_pathparseSRCV_cstr("jpegsrc.v6b.tar.bz2"); test_no_branching(); test_binpow(); return 0; }
int main (int argc, char *argv[]) { flux_t h; flux_reactor_t *reactor; plan (4+11+3+4+3+5+2); (void)setenv ("FLUX_CONNECTOR_PATH", CONNECTOR_PATH, 0); ok ((h = flux_open ("loop://", 0)) != NULL, "opened loop connector"); if (!h) BAIL_OUT ("can't continue without loop handle"); flux_fatal_set (h, fatal_err, NULL); ok ((reactor = flux_get_reactor (h)) != NULL, "obtained reactor"); if (!reactor) BAIL_OUT ("can't continue without reactor"); ok (flux_reactor_run (reactor, 0) == 0, "general: reactor ran to completion (no watchers)"); errno = 0; ok (flux_sleep_on (h, FLUX_MATCH_ANY) < 0 && errno == EINVAL, "general: flux_sleep_on outside coproc fails with EINVAL"); test_timer (reactor); // 11 test_fd (reactor); // 3 test_zmq (reactor); // 4 test_msg (h); // 3 test_multmatch (h); // 5 /* Misc */ lives_ok ({ reactor_destroy_early ();}, "destroying reactor then watcher doesn't segfault");
int main(int argc, char *argv[]) { printf("==== start\n"); if (sthread_init()) err(1, "sthread_init()"); printf("==== Basic sthread\n"); test_sthread(); test_sthread(); printf("==== Globals\n"); _global = 2; test_global(); if (_global != 2) errx(1, "global in master %d\n", _global); test_global(); printf("==== Stack\n"); test_stack(); test_stack(); printf("==== smalloc\n"); test_smalloc(); printf("==== fd\n"); test_fd(); printf("==== syscall\n"); test_syscall(); printf("==== parallel\n"); test_parallel(); printf("==== end\n"); exit(0); }