Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
80225b08
Commit
80225b08
authored
14 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Added unit test 1306 so tests 558 & 559 are now fully replaced
parent
bfc491a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/data/Makefile.am
+1
-1
1 addition, 1 deletion
tests/data/Makefile.am
tests/data/test1305
+5
-1
5 additions, 1 deletion
tests/data/test1305
tests/data/test1306
+30
-0
30 additions, 0 deletions
tests/data/test1306
tests/unit/unit1305.c
+13
-10
13 additions, 10 deletions
tests/unit/unit1305.c
with
49 additions
and
12 deletions
tests/data/Makefile.am
+
1
−
1
View file @
80225b08
...
...
@@ -70,7 +70,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test313 test1115 test578 test579 test1116 test1200 test1201 test1202
\
test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302
\
test1303 test320 test321 test322 test323 test324 test1121 test581 test580
\
test1304 test1305
test1304 test1305
test1306
filecheck
:
@
mkdir
test-place
;
\
...
...
This diff is collapsed.
Click to expand it.
tests/data/test1305
+
5
−
1
View file @
80225b08
<testcase>
<!-- This replaces test 558 -->
<info>
<keywords>
unittest
...
...
@@ -16,11 +17,14 @@ none
unittest
</features>
<name>
internal hash create/
add/
destroy testing
internal hash create/destroy testing
</name>
<tool>
unit1305
</tool>
<command>
1305
</command>
</client>
</testcase>
This diff is collapsed.
Click to expand it.
tests/data/test1306
0 → 100644
+
30
−
0
View file @
80225b08
<testcase>
<!-- This replaces test 559 -->
<info>
<keywords>
unittest
hash
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
unittest
</features>
<name>
internal hash create/add/destroy testing
</name>
<tool>
unit1305
</tool>
<command>
1306
</command>
</client>
</testcase>
This diff is collapsed.
Click to expand it.
tests/unit/unit1305.c
+
13
−
10
View file @
80225b08
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment