Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2c4fd428
Commit
2c4fd428
authored
May 15, 2003
by
Uwe Bonnes
Committed by
Alexandre Julliard
May 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New comctl32 test directory and test case for DPA_Search.
parent
29ef801b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
1 deletion
+75
-1
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/comctl32/Makefile.in
+3
-1
.cvsignore
dlls/comctl32/tests/.cvsignore
+4
-0
Makefile.in
dlls/comctl32/tests/Makefile.in
+13
-0
dpa.c
dlls/comctl32/tests/dpa.c
+54
-0
No files found.
configure
View file @
2c4fd428
This diff is collapsed.
Click to expand it.
configure.ac
View file @
2c4fd428
...
...
@@ -1365,6 +1365,7 @@ dlls/avifil32/Makefile
dlls/cabinet/Makefile
dlls/comcat/Makefile
dlls/comctl32/Makefile
dlls/comctl32/tests/Makefile
dlls/commdlg/Makefile
dlls/crtdll/Makefile
dlls/crypt32/Makefile
...
...
dlls/comctl32/Makefile.in
View file @
2c4fd428
...
...
@@ -39,7 +39,9 @@ C_SRCS = \
treeview.c
\
updown.c
RC_SRCS
=
rsrc.rc
RC_SRCS
=
rsrc.rc
SUBDIRS
=
tests
@MAKE_DLL_RULES@
...
...
dlls/comctl32/tests/.cvsignore
0 → 100644
View file @
2c4fd428
Makefile
comctl32_test.exe.spec.c
dpa.ok
testlist.c
dlls/comctl32/tests/Makefile.in
0 → 100644
View file @
2c4fd428
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
comctl32.dll
IMPORTS
=
comctl32
CTESTS
=
\
dpa.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/comctl32/tests/dpa.c
0 → 100644
View file @
2c4fd428
/*
* Unit tests for DPA functions
*
* Copyright 2003 Uwe Bonnes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "winbase.h"
#include "commctrl.h"
#include "wine/test.h"
static
INT
CALLBACK
dpa_strcmp
(
LPVOID
pvstr1
,
LPVOID
pvstr2
,
LPARAM
flags
)
{
LPCSTR
str1
=
(
LPCSTR
)
pvstr1
;
LPCSTR
str2
=
(
LPCSTR
)
pvstr2
;
return
lstrcmpA
(
str1
,
str2
);
}
void
DPA_test
()
{
HDPA
dpa_ret
;
INT
int_ret
;
CHAR
test_str0
[]
=
"test0"
;
dpa_ret
=
DPA_Create
(
0
);
ok
((
dpa_ret
!=
0
),
"DPA_Create failed"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
);
ok
((
int_ret
==
-
1
),
"DPA_Search found invalid item"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTBEFORE
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item"
);
int_ret
=
DPA_Search
(
dpa_ret
,
test_str0
,
0
,
dpa_strcmp
,
0
,
DPAS_SORTED
|
DPAS_INSERTAFTER
);
ok
((
int_ret
==
0
),
"DPA_Search proposed bad item"
);
}
START_TEST
(
dpa
)
{
DPA_test
();
}
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