restored all tests in test_linaer_hash.c to test device build
@@ -40,7 +40,7 @@ test_linear_hash_create(
int initial_size = 5;
int split_threshold = 85;
int records_per_bucket = 4;
- ion_err_t err = linear_hash_init(0, dictionary_size, key_type, key_size, value_size, initial_size, split_threshold, records_per_bucket, linear_hash);
+ ion_err_t err = linear_hash_init(1, dictionary_size, key_type, key_size, value_size, initial_size, split_threshold, records_per_bucket, linear_hash);
linear_hash->super.compare = dictionary_compare_signed_value;
@@ -452,10 +452,8 @@ test_linear_hash_create_destroy(
linear_hash_table_t *linear_hash = alloca(sizeof(linear_hash_table_t));
test_linear_hash_setup(tc, linear_hash);
- linear_hash_close(linear_hash);
- //test_linear_hash_takedown(tc, linear_hash);
- PLANCK_UNIT_ASSERT_TRUE(tc, 1 == 1);
+ test_linear_hash_takedown(tc, linear_hash);
}
planck_unit_suite_t *
@@ -464,7 +462,6 @@ linear_hash_getsuite(
planck_unit_suite_t *suite = planck_unit_new_suite();
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_create_destroy);
- /*
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_basic_operations);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_bucket_map_head_updates);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_increment_buckets);
@@ -472,7 +469,6 @@ linear_hash_getsuite(
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_correct_bucket_after_split);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_global_record_increments_decrements);
PLANCK_UNIT_ADD_TO_SUITE(suite, test_linear_hash_local_record_increments_decrements);
- */
return suite;
}
