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
acb52e52
Commit
acb52e52
authored
Feb 06, 2006
by
Stefan Leichter
Committed by
Alexandre Julliard
Feb 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Added a test for QueryDosDeviceA.
parent
31afe883
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1 deletion
+54
-1
.gitignore
dlls/kernel/tests/.gitignore
+1
-0
Makefile.in
dlls/kernel/tests/Makefile.in
+2
-1
volume.c
dlls/kernel/tests/volume.c
+51
-0
No files found.
dlls/kernel/tests/.gitignore
View file @
acb52e52
...
...
@@ -25,3 +25,4 @@ thread.ok
time.ok
timer.ok
virtual.ok
volume.ok
dlls/kernel/tests/Makefile.in
View file @
acb52e52
...
...
@@ -30,7 +30,8 @@ CTESTS = \
thread.c
\
time.c
\
timer.c
\
virtual.c
virtual.c
\
volume.c
@MAKE_TEST_RULES@
...
...
dlls/kernel/tests/volume.c
0 → 100644
View file @
acb52e52
/*
* Unit test suite
*
* Copyright 2006 Stefan Leichter
*
* 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 "wine/test.h"
#include "winbase.h"
#define CDROM "CDROM"
#define FLOPPY "FLOPPY"
#define HARDISK "HARDDISK"
#define LANMAN "LANMANREDIRECTOR"
#define RAMDISK "RAMDISK"
static
void
test_query_dos_deviceA
(
void
)
{
char
drivestr
[]
=
"a:"
;
char
*
p
,
buffer
[
2000
];
DWORD
ret
;
for
(;
drivestr
[
0
]
<=
'z'
;
drivestr
[
0
]
++
)
{
ret
=
QueryDosDeviceA
(
drivestr
,
buffer
,
sizeof
(
buffer
));
if
(
ret
)
{
for
(
p
=
buffer
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
todo_wine
ok
(
strstr
(
buffer
,
CDROM
)
||
strstr
(
buffer
,
FLOPPY
)
||
strstr
(
buffer
,
HARDISK
)
||
strstr
(
buffer
,
LANMAN
)
||
strstr
(
buffer
,
RAMDISK
),
"expect the string %s contains %s,%s,%s,%s or %s
\n
"
,
buffer
,
CDROM
,
FLOPPY
,
HARDISK
,
LANMAN
,
RAMDISK
);
}
}
}
START_TEST
(
volume
)
{
test_query_dos_deviceA
();
}
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