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
a768fa31
Commit
a768fa31
authored
Oct 30, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Oct 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First version of msvcrt scanf test.
parent
ec5612ee
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
0 deletions
+67
-0
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/msvcrt/Makefile.in
+2
-0
.cvsignore
dlls/msvcrt/tests/.cvsignore
+4
-0
Makefile.in
dlls/msvcrt/tests/Makefile.in
+14
-0
scanf.c
dlls/msvcrt/tests/scanf.c
+46
-0
No files found.
configure
View file @
a768fa31
This diff is collapsed.
Click to expand it.
configure.ac
View file @
a768fa31
...
...
@@ -1411,6 +1411,7 @@ dlls/msimg32/Makefile
dlls/msisys/Makefile
dlls/msnet32/Makefile
dlls/msvcrt/Makefile
dlls/msvcrt/tests/Makefile
dlls/msvcrt20/Makefile
dlls/msvideo/Makefile
dlls/msvideo/msrle32/Makefile
...
...
dlls/msvcrt/Makefile.in
View file @
a768fa31
...
...
@@ -37,6 +37,8 @@ C_SRCS = \
time.c
\
wcs.c
SUBDIRS
=
tests
@MAKE_DLL_RULES@
### Dependencies:
dlls/msvcrt/tests/.cvsignore
0 → 100644
View file @
a768fa31
Makefile
msvcrt_test.exe.spec.c
scanf.ok
testlist.c
dlls/msvcrt/tests/Makefile.in
0 → 100644
View file @
a768fa31
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
msvcrt.dll
IMPORTS
=
msvcrt
EXTRAINCL
=
-I
$(TOPSRCDIR)
/include/msvcrt
CTESTS
=
\
scanf.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/msvcrt/tests/scanf.c
0 → 100644
View file @
a768fa31
/*
* Unit test suite for *scanf functions.
*
* Copyright 2002 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 "stdio.h"
#include "wine/test.h"
static
void
test_sscanf
(
void
)
{
char
buffer
[
100
];
int
result
;
strcpy
(
buffer
,
"0x519"
);
ok
(
sscanf
(
buffer
,
"%x"
,
&
result
)
==
1
,
"sscanf failed"
);
ok
(
result
==
0x519
,
"sscanf reads %x instead of %x"
,
result
,
0x519
);
strcpy
(
buffer
,
"0x51a"
);
ok
(
sscanf
(
buffer
,
"%x"
,
&
result
)
==
1
,
"sscanf failed"
);
ok
(
result
==
0x51a
,
"sscanf reads %x instead of %x"
,
result
,
0x51a
);
strcpy
(
buffer
,
"0x51g"
);
ok
(
sscanf
(
buffer
,
"%x"
,
&
result
)
==
1
,
"sscanf failed"
);
ok
(
result
==
0x51
,
"sscanf reads %x instead of %x"
,
result
,
0x51
);
}
START_TEST
(
scanf
)
{
test_sscanf
();
}
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