void test_type_equality(void)
{
  test_compare_simple_types();
  test_compare_mem();
  test_compare_string();
  test_compare_struct_sockaddr();
  test_compare_struct_timespec();
  test_compare_struct_timeval();
  test_compare_struct_timex();
  test_compare_struct_timezone();
  test_compare_struct_utimbuf();
  test_compare_struct_stat64();
  test_compare_struct_dirent64();
  test_compare_struct_utsname();
  test_compare_struct_flock();
}
Beispiel #2
0
int main(int argc, char *argv[])
{
    int error_count;

    error_count = 0;
    printf("\n    testing pod_string\n");
    if (POD_STRING_TYPE != 0x61) {
        error_count++;
        printf("    POD_STRING_TYPE is not the expected value.\n");
        printf("        (expected 0x61, got 0x%x.)\n", POD_STRING_TYPE);
    }
    error_count += test_create_and_destroy();
    error_count += test_copy_string();
    error_count += test_compare_string();
    error_count += test_dup();
    error_count += test_append();

    return error_count;
}