diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-03-04 15:13:12 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-03-04 15:13:12 -0800 |
commit | 80225b08cdda44cf1a764361131eef122f8c9451 (patch) | |
tree | f147a41dde1327945f485ca999f16f28e3b8ffbf /tests/unit | |
parent | bfc491a2d238e141872d1266a65121e1309c1e7c (diff) |
Added unit test 1306 so tests 558 & 559 are now fully replaced
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unit1305.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/unit/unit1305.c b/tests/unit/unit1305.c index bcf7c43ff..ab41a7dc5 100644 --- a/tests/unit/unit1305.c +++ b/tests/unit/unit1305.c @@ -117,15 +117,18 @@ UNITTEST_START struct Curl_dns_entry *nodep; size_t key_len; - CURLcode rc = create_node(); - abort_unless(rc == CURLE_OK, "data node creation failed"); - key_len = strlen(data_key); - - nodep = Curl_hash_add(hp, data_key, key_len+1, data_node); - abort_unless(nodep, "insertion into hash failed"); - /* Freeing will now be done by Curl_hash_destroy */ - data_node = NULL; - - /* To do: test retrieval, deletion, edge conditions */ + /* Test 1305 exits without adding anything to the hash */ + if (strcmp(arg, "1305") != 0) { + CURLcode rc = create_node(); + abort_unless(rc == CURLE_OK, "data node creation failed"); + key_len = strlen(data_key); + + nodep = Curl_hash_add(hp, data_key, key_len+1, data_node); + abort_unless(nodep, "insertion into hash failed"); + /* Freeing will now be done by Curl_hash_destroy */ + data_node = NULL; + + /* To do: test retrieval, deletion, edge conditions */ + } UNITTEST_STOP |