2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

[rt25901_atf] Test for 29851 simiplified

This commit is contained in:
Tomek Mrugalski
2012-07-02 18:45:07 +02:00
parent 54d3aff8f3
commit 97ddf9d161

View File

@@ -612,8 +612,8 @@ ATF_TC_HEAD(uid_hash_rt29851, tc) {
atf_tc_set_md_var(tc, "descr", "Uid hash tests");
/* this test should last less than millisecond. If its execution
is longer than 1 second, we hit infinite loop. */
atf_tc_set_md_var(tc, "timeout", "1");
is longer than 3 second, we hit infinite loop. */
atf_tc_set_md_var(tc, "timeout", "3");
}
ATF_TC_BODY(uid_hash_rt29851, tc) {
@@ -646,15 +646,15 @@ ATF_TC_BODY(uid_hash_rt29851, tc) {
lease3->uid_len = clientid3_len;
uid_hash_add(lease1);
uid_hash_delete(lease2);
// uid_hash_delete(lease2); // not necessary for actual issue repro
uid_hash_add(lease3);
lease2->uid_len = 0;
uid_hash_delete(lease2);
uid_hash_delete(lease3);
// lease2->uid_len = 0; // not necessary for actual issue repro
// uid_hash_delete(lease2); // not necessary for actual issue repro
// uid_hash_delete(lease3); // not necessary for actual issue repro
uid_hash_delete(lease1);
lease2->uid_len = 1;
// lease2->uid_len = 1; // not necessary for actual issue repro
uid_hash_add(lease1);
uid_hash_delete(lease2);
}