Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cf6e0d82
Commit
cf6e0d82
authored
Jan 09, 2007
by
Bill Medland
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Add tests structure.
parent
13dfa9a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
80 additions
and
0 deletions
+80
-0
.gitignore
.gitignore
+4
-0
Makefile.in
Makefile.in
+2
-0
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/Makefile.in
+1
-0
Makefile.in
dlls/odbccp32/tests/Makefile.in
+13
-0
misc.c
dlls/odbccp32/tests/misc.c
+55
-0
Makefile.in
programs/winetest/Makefile.in
+3
-0
winetest.rc
programs/winetest/winetest.rc
+1
-0
No files found.
.gitignore
View file @
cf6e0d82
...
@@ -356,6 +356,9 @@ dlls/ntdsapi/libntdsapi.def
...
@@ -356,6 +356,9 @@ dlls/ntdsapi/libntdsapi.def
dlls/objsel/objsel.res
dlls/objsel/objsel.res
dlls/odbc32/libodbc32.def
dlls/odbc32/libodbc32.def
dlls/odbccp32/libodbccp32.def
dlls/odbccp32/libodbccp32.def
dlls/odbccp32/tests/*.ok
dlls/odbccp32/tests/odbccp32_crosstest.exe
dlls/odbccp32/tests/testlist.c
dlls/ole2.dll16
dlls/ole2.dll16
dlls/ole2conv.dll16
dlls/ole2conv.dll16
dlls/ole2disp.dll16
dlls/ole2disp.dll16
...
@@ -751,6 +754,7 @@ programs/winetest/msvcrtd_test.exe
...
@@ -751,6 +754,7 @@ programs/winetest/msvcrtd_test.exe
programs/winetest/msxml3_test.exe
programs/winetest/msxml3_test.exe
programs/winetest/netapi32_test.exe
programs/winetest/netapi32_test.exe
programs/winetest/ntdll_test.exe
programs/winetest/ntdll_test.exe
programs/winetest/odbccp32_test.exe
programs/winetest/ole32_test.exe
programs/winetest/ole32_test.exe
programs/winetest/oleaut32_test.exe
programs/winetest/oleaut32_test.exe
programs/winetest/psapi_test.exe
programs/winetest/psapi_test.exe
...
...
Makefile.in
View file @
cf6e0d82
...
@@ -301,6 +301,7 @@ ALL_MAKEFILES = \
...
@@ -301,6 +301,7 @@ ALL_MAKEFILES = \
dlls/objsel/Makefile
\
dlls/objsel/Makefile
\
dlls/odbc32/Makefile
\
dlls/odbc32/Makefile
\
dlls/odbccp32/Makefile
\
dlls/odbccp32/Makefile
\
dlls/odbccp32/tests/Makefile
\
dlls/ole32/Makefile
\
dlls/ole32/Makefile
\
dlls/ole32/tests/Makefile
\
dlls/ole32/tests/Makefile
\
dlls/oleacc/Makefile
\
dlls/oleacc/Makefile
\
...
@@ -626,6 +627,7 @@ dlls/ntdsapi/Makefile: dlls/ntdsapi/Makefile.in dlls/Makedll.rules
...
@@ -626,6 +627,7 @@ dlls/ntdsapi/Makefile: dlls/ntdsapi/Makefile.in dlls/Makedll.rules
dlls/objsel/Makefile
:
dlls/objsel/Makefile.in dlls/Makedll.rules
dlls/objsel/Makefile
:
dlls/objsel/Makefile.in dlls/Makedll.rules
dlls/odbc32/Makefile
:
dlls/odbc32/Makefile.in dlls/Makedll.rules
dlls/odbc32/Makefile
:
dlls/odbc32/Makefile.in dlls/Makedll.rules
dlls/odbccp32/Makefile
:
dlls/odbccp32/Makefile.in dlls/Makedll.rules
dlls/odbccp32/Makefile
:
dlls/odbccp32/Makefile.in dlls/Makedll.rules
dlls/odbccp32/tests/Makefile
:
dlls/odbccp32/tests/Makefile.in dlls/Maketest.rules
dlls/ole32/Makefile
:
dlls/ole32/Makefile.in dlls/Makedll.rules
dlls/ole32/Makefile
:
dlls/ole32/Makefile.in dlls/Makedll.rules
dlls/ole32/tests/Makefile
:
dlls/ole32/tests/Makefile.in dlls/Maketest.rules
dlls/ole32/tests/Makefile
:
dlls/ole32/tests/Makefile.in dlls/Maketest.rules
dlls/oleacc/Makefile
:
dlls/oleacc/Makefile.in dlls/Makedll.rules
dlls/oleacc/Makefile
:
dlls/oleacc/Makefile.in dlls/Makedll.rules
...
...
configure
View file @
cf6e0d82
This diff is collapsed.
Click to expand it.
configure.ac
View file @
cf6e0d82
...
@@ -1672,6 +1672,7 @@ dlls/ntdsapi/Makefile
...
@@ -1672,6 +1672,7 @@ dlls/ntdsapi/Makefile
dlls/objsel/Makefile
dlls/objsel/Makefile
dlls/odbc32/Makefile
dlls/odbc32/Makefile
dlls/odbccp32/Makefile
dlls/odbccp32/Makefile
dlls/odbccp32/tests/Makefile
dlls/ole32/Makefile
dlls/ole32/Makefile
dlls/ole32/tests/Makefile
dlls/ole32/tests/Makefile
dlls/oleacc/Makefile
dlls/oleacc/Makefile
...
...
dlls/Makefile.in
View file @
cf6e0d82
...
@@ -248,6 +248,7 @@ TESTSUBDIRS = \
...
@@ -248,6 +248,7 @@ TESTSUBDIRS = \
msxml3/tests
\
msxml3/tests
\
netapi32/tests
\
netapi32/tests
\
ntdll/tests
\
ntdll/tests
\
odbccp32/tests
\
ole32/tests
\
ole32/tests
\
oleaut32/tests
\
oleaut32/tests
\
psapi/tests
\
psapi/tests
\
...
...
dlls/odbccp32/tests/Makefile.in
0 → 100644
View file @
cf6e0d82
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
odbccp32.dll
IMPORTS
=
odbccp32 user32 kernel32
CTESTS
=
\
misc.c
@MAKE_TEST_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/odbccp32/tests/misc.c
0 → 100644
View file @
cf6e0d82
/*
* Copyright 2007 Bill Medland
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <wine/test.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "odbcinst.h"
static
void
test_SQLInstallerError
(
void
)
{
RETCODE
sql_ret
;
/* MSDN states that the error number should be between 1 and 8. Passing 0 is an error */
sql_ret
=
SQLInstallerError
(
0
,
NULL
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
sql_ret
==
SQL_ERROR
,
"SQLInstallerError(0...) failed with %d instead of SQL_ERROR
\n
"
,
sql_ret
);
/* However numbers greater than 8 do not return SQL_ERROR.
* I am currenly unsure as to whether it should return SQL_NO_DATA or "the same as for error 8";
* I have never been able to generate 8 errors to test it
*/
sql_ret
=
SQLInstallerError
(
65535
,
NULL
,
NULL
,
0
,
NULL
);
ok
(
sql_ret
==
SQL_NO_DATA
,
"SQLInstallerError(>8...) failed with %d instead of SQL_NO_DATA
\n
"
,
sql_ret
);
/* Force an error to work with. This should generate ODBC_ERROR_INVALID_BUFF_LEN */
ok
(
!
SQLGetInstalledDrivers
(
0
,
0
,
0
),
"Failed to force an error for testing
\n
"
);
sql_ret
=
SQLInstallerError
(
2
,
NULL
,
NULL
,
0
,
NULL
);
ok
(
sql_ret
==
SQL_NO_DATA
,
"Too many errors when forcing an error for testing
\n
"
);
/* Null pointers are acceptable in all obvious places */
sql_ret
=
SQLInstallerError
(
1
,
NULL
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
sql_ret
==
SQL_SUCCESS_WITH_INFO
,
"SQLInstallerError(null addresses) failed with %d instead of SQL_SUCCESS_WITH_INFO
\n
"
,
sql_ret
);
}
START_TEST
(
misc
)
{
test_SQLInstallerError
();
}
programs/winetest/Makefile.in
View file @
cf6e0d82
...
@@ -55,6 +55,7 @@ TESTBINS = \
...
@@ -55,6 +55,7 @@ TESTBINS = \
msxml3_test.exe
\
msxml3_test.exe
\
netapi32_test.exe
\
netapi32_test.exe
\
ntdll_test.exe
\
ntdll_test.exe
\
odbccp32_test.exe
\
ole32_test.exe
\
ole32_test.exe
\
oleaut32_test.exe
\
oleaut32_test.exe
\
psapi_test.exe
\
psapi_test.exe
\
...
@@ -143,6 +144,8 @@ netapi32_test.exe: $(DLLDIR)/netapi32/tests/netapi32_test.exe$(DLLEXT)
...
@@ -143,6 +144,8 @@ netapi32_test.exe: $(DLLDIR)/netapi32/tests/netapi32_test.exe$(DLLEXT)
cp
$(DLLDIR)
/netapi32/tests/netapi32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
cp
$(DLLDIR)
/netapi32/tests/netapi32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
ntdll_test.exe
:
$(DLLDIR)/ntdll/tests/ntdll_test.exe$(DLLEXT)
ntdll_test.exe
:
$(DLLDIR)/ntdll/tests/ntdll_test.exe$(DLLEXT)
cp
$(DLLDIR)
/ntdll/tests/ntdll_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
cp
$(DLLDIR)
/ntdll/tests/ntdll_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
odbccp32_test.exe
:
$(DLLDIR)/odbccp32/tests/odbccp32_test.exe$(DLLEXT)
cp
$(DLLDIR)
/odbccp32/tests/odbccp32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
ole32_test.exe
:
$(DLLDIR)/ole32/tests/ole32_test.exe$(DLLEXT)
ole32_test.exe
:
$(DLLDIR)/ole32/tests/ole32_test.exe$(DLLEXT)
cp
$(DLLDIR)
/ole32/tests/ole32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
cp
$(DLLDIR)
/ole32/tests/ole32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
oleaut32_test.exe
:
$(DLLDIR)/oleaut32/tests/oleaut32_test.exe$(DLLEXT)
oleaut32_test.exe
:
$(DLLDIR)/oleaut32/tests/oleaut32_test.exe$(DLLEXT)
...
...
programs/winetest/winetest.rc
View file @
cf6e0d82
...
@@ -178,6 +178,7 @@ msvcrtd_test.exe TESTRES "msvcrtd_test.exe"
...
@@ -178,6 +178,7 @@ msvcrtd_test.exe TESTRES "msvcrtd_test.exe"
msxml3_test.exe TESTRES "msxml3_test.exe"
msxml3_test.exe TESTRES "msxml3_test.exe"
netapi32_test.exe TESTRES "netapi32_test.exe"
netapi32_test.exe TESTRES "netapi32_test.exe"
ntdll_test.exe TESTRES "ntdll_test.exe"
ntdll_test.exe TESTRES "ntdll_test.exe"
odbccp32_test.exe TESTRES "odbccp32_test.exe"
ole32_test.exe TESTRES "ole32_test.exe"
ole32_test.exe TESTRES "ole32_test.exe"
oleaut32_test.exe TESTRES "oleaut32_test.exe"
oleaut32_test.exe TESTRES "oleaut32_test.exe"
psapi_test.exe TESTRES "psapi_test.exe"
psapi_test.exe TESTRES "psapi_test.exe"
...
...
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