Пример #1
0
int
suite_init_pgr(void)
{
	suite_init();
	iscsic2 = iscsi_context_login(initiatorname2, tgt_url, &tgt_lun2);
	if (iscsic2 == NULL) {
		fprintf(stderr,
		    "error: Failed to login to target for test set-up\n");
		suite_cleanup();
		return 1;
	}
	return 0;
}
Пример #2
0
int main( int argc, char **argv ) {
	suite_init();

	hashmap_test_add();
	hashmap_test_add_hash_collision();
	hashmap_test_add_key_collision();
	hashmap_test_get_unset_key();
	hashmap_test_get();
	hashmap_test_auto_scaling();
	hashmap_test_holds_any_value();
	hashmap_test_delete();
	hashmap_test_delete_after_key_collision();
	hashmap_test_delete_after_hash_collision();
	hashmap_test_delete_nonexistent_key();

	suite_report();
	
    return 0;
}