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
43b81653
Commit
43b81653
authored
14 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed test 577 to work when --enable-hidden-symbols is configured
parent
77cfeadf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/data/test577
+5
-0
5 additions, 0 deletions
tests/data/test577
tests/libtest/lib577.c
+38
-0
38 additions, 0 deletions
tests/libtest/lib577.c
with
43 additions
and
0 deletions
tests/data/test577
+
5
−
0
View file @
43b81653
...
...
@@ -18,6 +18,11 @@ none
<tool>
lib577
</tool>
# precheck is a command line to run before the test,
# to see if we can execute the test or not
<precheck>
./libtest/lib577 check
</precheck>
<name>
Curl_fnmatch() testing
...
...
This diff is collapsed.
Click to expand it.
tests/libtest/lib577.c
+
38
−
0
View file @
43b81653
...
...
@@ -9,6 +9,25 @@
#include
"test.h"
/*
* This hacky test bypasses the library external API,
* using internal only libcurl functions. So don't be
* surprised if we cannot run it when the library has
* been built with hidden symbols, exporting only the
* ones in the public API.
*/
#if defined(CURL_HIDDEN_SYMBOLS)
# define SKIP_TEST 1
#elif defined(WIN32) && !defined(CURL_STATICLIB)
# define SKIP_TEST 1
#else
# undef SKIP_TEST
#endif
#if !defined(SKIP_TEST)
#include
"memdebug.h"
#include
"curl_fnmatch.h"
...
...
@@ -204,6 +223,12 @@ int test(char *URL)
int
testnum
=
sizeof
(
tests
)
/
sizeof
(
struct
testcase
);
int
i
,
rc
;
(
void
)
URL
;
/* not used */
if
(
!
strcmp
(
URL
,
"check"
))
{
/* test harness script verifying if this test can run */
return
0
;
/* sure, run this! */
}
printf
(
"===========================
\n
"
);
for
(
i
=
0
;
i
<
testnum
;
i
++
)
{
rc
=
Curl_fnmatch
(
tests
[
i
].
pattern
,
tests
[
i
].
string
);
...
...
@@ -215,3 +240,16 @@ int test(char *URL)
printf
(
"===========================
\n
"
);
return
0
;
}
#else
/* !defined(SKIP_TEST) */
int
test
(
char
*
URL
)
{
(
void
)
URL
;
fprintf
(
stdout
,
"libcurl built with hidden symbols"
);
return
1
;
/* skip test */
}
#endif
/* !defined(SKIP_TEST) */
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