/* * Print version information to stderr. */ static void main_version(void) { fprintf(stderr, "%s %s (built %s)\n", PNAME, version, build_date); fprintf(stderr, "Copyright (c) 2009-2012, " "Daniel Roethlisberger <*****@*****.**>\n"); fprintf(stderr, "http://www.roe.ch/SSLsplit\n"); if (features[0]) { fprintf(stderr, "Features: %s\n", features); } nat_version(); ssl_openssl_version(); fprintf(stderr, "compiled against libevent %s\n", LIBEVENT_VERSION); fprintf(stderr, "rtlinked against libevent %s\n", event_get_version()); fprintf(stderr, "%d CPU cores detected\n", sys_get_cpu_cores()); }
END_TEST START_TEST(sys_get_cpu_cores_01) { fail_unless(sys_get_cpu_cores() >= 1, "Number of CPU cores < 1"); }