Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
25262e94
Unverified
Commit
25262e94
authored
Dec 18, 2023
by
Edward Thomson
Committed by
GitHub
Dec 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6691 from boretrk/strcasecmp
tests: remove test for strcasecmp
parents
704967e7
0023bf72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
src/util/unix/posix.h
+0
-2
tests/clar/clar.c
+0
-3
tests/util/string.c
+0
-6
No files found.
src/util/unix/posix.h
View file @
25262e94
...
@@ -54,8 +54,6 @@ GIT_INLINE(int) p_fsync(int fd)
...
@@ -54,8 +54,6 @@ GIT_INLINE(int) p_fsync(int fd)
#define p_send(s,b,l,f) send(s,b,l,f)
#define p_send(s,b,l,f) send(s,b,l,f)
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
#define p_inet_pton(a, b, c) inet_pton(a, b, c)
#define p_strcasecmp(s1, s2) strcasecmp(s1, s2)
#define p_strncasecmp(s1, s2, c) strncasecmp(s1, s2, c)
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
#define p_vsnprintf(b, c, f, a) vsnprintf(b, c, f, a)
#define p_snprintf snprintf
#define p_snprintf snprintf
#define p_chdir(p) chdir(p)
#define p_chdir(p) chdir(p)
...
...
tests/clar/clar.c
View file @
25262e94
...
@@ -41,9 +41,6 @@
...
@@ -41,9 +41,6 @@
# ifndef strdup
# ifndef strdup
# define strdup(str) _strdup(str)
# define strdup(str) _strdup(str)
# endif
# endif
# ifndef strcasecmp
# define strcasecmp(a,b) _stricmp(a,b)
# endif
# ifndef __MINGW32__
# ifndef __MINGW32__
# pragma comment(lib, "shell32")
# pragma comment(lib, "shell32")
...
...
tests/util/string.c
View file @
25262e94
...
@@ -111,12 +111,6 @@ void test_string__strcasecmp(void)
...
@@ -111,12 +111,6 @@ void test_string__strcasecmp(void)
cl_assert
(
git__strcasecmp
(
"foo"
,
"FOO"
)
==
0
);
cl_assert
(
git__strcasecmp
(
"foo"
,
"FOO"
)
==
0
);
cl_assert
(
git__strcasecmp
(
"foo"
,
"fOO"
)
==
0
);
cl_assert
(
git__strcasecmp
(
"foo"
,
"fOO"
)
==
0
);
cl_assert
(
strcasecmp
(
"rt
\303\202
of"
,
"rt dev
\302\266
h"
)
>
0
);
cl_assert
(
strcasecmp
(
"e
\342\202\254
ghi="
,
"et"
)
>
0
);
cl_assert
(
strcasecmp
(
"rt dev
\302\266
h"
,
"rt
\303\202
of"
)
<
0
);
cl_assert
(
strcasecmp
(
"et"
,
"e
\342\202\254
ghi="
)
<
0
);
cl_assert
(
strcasecmp
(
"
\303\215
"
,
"
\303\255
"
)
<
0
);
cl_assert
(
git__strcasecmp
(
"rt
\303\202
of"
,
"rt dev
\302\266
h"
)
>
0
);
cl_assert
(
git__strcasecmp
(
"rt
\303\202
of"
,
"rt dev
\302\266
h"
)
>
0
);
cl_assert
(
git__strcasecmp
(
"e
\342\202\254
ghi="
,
"et"
)
>
0
);
cl_assert
(
git__strcasecmp
(
"e
\342\202\254
ghi="
,
"et"
)
>
0
);
cl_assert
(
git__strcasecmp
(
"rt dev
\302\266
h"
,
"rt
\303\202
of"
)
<
0
);
cl_assert
(
git__strcasecmp
(
"rt dev
\302\266
h"
,
"rt
\303\202
of"
)
<
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment