コード例 #1
0
ファイル: test_sel_thread.c プロジェクト: pombredanne/pazpar2
int main(int argc, char **argv)
{
    YAZ_CHECK_INIT(argc, argv);
    YAZ_CHECK_LOG();

    test_create_destroy();
    test_for_real_work(1);
    test_for_real_work(3);

    YAZ_CHECK_TERM;
}
コード例 #2
0
ファイル: c_example.c プロジェクト: sidfarkus/bvutils
int main(void)
{
    int errors = 0;
    errors += test_create_destroy();
    errors += test_create_from_array_destroy();
    errors += test_create_from_serialized_destroy();
    errors += test_serialization_destruction();
    errors += test_identical();
    errors += test_intersecting_auth_fewer();
    errors += test_intersecting_auth_more();
    errors += test_non_intersecting();

    if (errors > 0)
    {
        printf("FAILURE: %d errors\n",errors);
    }
    else
    {
        printf("SUCCESS\n");
    }
}