Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
0a4eebd7
Commit
0a4eebd7
authored
16 years ago
by
Paul Vriens
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
kernel32/tests: Don't run tests on win9x if we are out of memory.
parent
587eda5a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/kernel32/tests/console.c
+21
-11
21 additions, 11 deletions
dlls/kernel32/tests/console.c
with
21 additions
and
11 deletions
dlls/kernel32/tests/console.c
+
21
−
11
View file @
0a4eebd7
...
...
@@ -380,6 +380,7 @@ static void testScroll(HANDLE hCon, COORD sbSize)
SMALL_RECT
scroll
,
clip
;
COORD
dst
,
c
,
tc
;
CHAR_INFO
ci
;
BOOL
ret
;
#define W 11
#define H 7
...
...
@@ -473,23 +474,32 @@ static void testScroll(HANDLE hCon, COORD sbSize)
clip
.
Top
=
H
/
2
;
clip
.
Bottom
=
min
(
H
+
H
/
2
,
sbSize
.
Y
-
1
);
ok
(
ScrollConsoleScreenBuffer
(
hCon
,
&
scroll
,
&
clip
,
dst
,
&
ci
),
"Scrolling SB
\n
"
);
for
(
c
.
Y
=
0
;
c
.
Y
<
sbSize
.
Y
;
c
.
Y
++
)
SetLastError
(
0xdeadbeef
);
ret
=
ScrollConsoleScreenBuffer
(
hCon
,
&
scroll
,
&
clip
,
dst
,
&
ci
);
if
(
ret
)
{
for
(
c
.
X
=
0
;
c
.
X
<
sbSize
.
X
;
c
.
X
++
)
for
(
c
.
Y
=
0
;
c
.
Y
<
sbSize
.
Y
;
c
.
Y
++
)
{
if
(
IN_SRECT2
(
scroll
,
dst
,
c
)
&&
IN_SRECT
(
clip
,
c
)
)
for
(
c
.
X
=
0
;
c
.
X
<
sbSize
.
X
;
c
.
X
++
)
{
tc
.
X
=
c
.
X
-
dst
.
X
;
tc
.
Y
=
c
.
Y
-
dst
.
Y
;
okCHAR
(
hCon
,
c
,
CONTENT
(
tc
),
DEFAULT_ATTRIB
);
if
(
IN_SRECT2
(
scroll
,
dst
,
c
)
&&
IN_SRECT
(
clip
,
c
))
{
tc
.
X
=
c
.
X
-
dst
.
X
;
tc
.
Y
=
c
.
Y
-
dst
.
Y
;
okCHAR
(
hCon
,
c
,
CONTENT
(
tc
),
DEFAULT_ATTRIB
);
}
else
if
(
IN_SRECT
(
scroll
,
c
)
&&
IN_SRECT
(
clip
,
c
))
okCHAR
(
hCon
,
c
,
'#'
,
TEST_ATTRIB
);
else
okCHAR
(
hCon
,
c
,
CONTENT
(
c
),
DEFAULT_ATTRIB
);
}
else
if
(
IN_SRECT
(
scroll
,
c
)
&&
IN_SRECT
(
clip
,
c
))
okCHAR
(
hCon
,
c
,
'#'
,
TEST_ATTRIB
);
else
okCHAR
(
hCon
,
c
,
CONTENT
(
c
),
DEFAULT_ATTRIB
);
}
}
else
{
/* Win9x will fail, Only accept ERROR_NOT_ENOUGH_MEMORY */
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
,
"Expected ERROR_NOT_ENOUGH_MEMORY, got %u
\n
"
,
GetLastError
());
}
/* clipping, src & dst rect do overlap */
resetContent
(
hCon
,
sbSize
,
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment