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
35a10f05
Commit
35a10f05
authored
Jul 13, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms/tests: Skip tests if we don't have enough rights.
parent
0653b950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
profile.c
dlls/mscms/tests/profile.c
+36
-0
No files found.
dlls/mscms/tests/profile.c
View file @
35a10f05
...
...
@@ -653,7 +653,13 @@ static void test_GetStandardColorSpaceProfileA(void)
ret
=
pGetStandardColorSpaceProfileA
(
NULL
,
SPACE_RGB
,
oldprofile
,
&
size
);
ok
(
ret
,
"GetStandardColorSpaceProfileA() failed (%d)
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetStandardColorSpaceProfileA
(
NULL
,
SPACE_RGB
,
standardprofile
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for SetStandardColorSpaceProfileA
\n
"
);
return
;
}
ok
(
ret
,
"SetStandardColorSpaceProfileA() failed (%d)
\n
"
,
GetLastError
()
);
size
=
sizeof
(
newprofile
);
...
...
@@ -730,7 +736,13 @@ static void test_GetStandardColorSpaceProfileW(void)
ret
=
pGetStandardColorSpaceProfileW
(
NULL
,
SPACE_RGB
,
oldprofile
,
&
size
);
ok
(
ret
,
"GetStandardColorSpaceProfileW() failed (%d)
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetStandardColorSpaceProfileW
(
NULL
,
SPACE_RGB
,
standardprofileW
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for SetStandardColorSpaceProfileW
\n
"
);
return
;
}
ok
(
ret
,
"SetStandardColorSpaceProfileW() failed (%d)
\n
"
,
GetLastError
()
);
size
=
sizeof
(
newprofile
);
...
...
@@ -871,7 +883,13 @@ static void test_InstallColorProfileA(void)
CHAR
slash
[]
=
"
\\
"
;
HANDLE
handle
;
SetLastError
(
0xdeadbeef
);
ret
=
pInstallColorProfileA
(
NULL
,
testprofile
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for InstallColorProfileA
\n
"
);
return
;
}
ok
(
ret
,
"InstallColorProfileA() failed (%d)
\n
"
,
GetLastError
()
);
ret
=
pGetColorDirectoryA
(
NULL
,
dest
,
&
size
);
...
...
@@ -922,7 +940,13 @@ static void test_InstallColorProfileW(void)
WCHAR
slash
[]
=
{
'\\'
,
0
};
HANDLE
handle
;
SetLastError
(
0xdeadbeef
);
ret
=
pInstallColorProfileW
(
NULL
,
testprofileW
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for InstallColorProfileW
\n
"
);
return
;
}
ok
(
ret
,
"InstallColorProfileW() failed (%d)
\n
"
,
GetLastError
()
);
ret
=
pGetColorDirectoryW
(
NULL
,
dest
,
&
size
);
...
...
@@ -1237,7 +1261,13 @@ static void test_UninstallColorProfileA(void)
CHAR
slash
[]
=
"
\\
"
;
HANDLE
handle
;
SetLastError
(
0xdeadbeef
);
ret
=
pInstallColorProfileA
(
NULL
,
testprofile
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for InstallColorProfileA
\n
"
);
return
;
}
ok
(
ret
,
"InstallColorProfileA() failed (%d)
\n
"
,
GetLastError
()
);
ret
=
pGetColorDirectoryA
(
NULL
,
dest
,
&
size
);
...
...
@@ -1281,7 +1311,13 @@ static void test_UninstallColorProfileW(void)
HANDLE
handle
;
int
bytes_copied
;
SetLastError
(
0xdeadbeef
);
ret
=
pInstallColorProfileW
(
NULL
,
testprofileW
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
))
{
skip
(
"Not enough rights for InstallColorProfileW
\n
"
);
return
;
}
ok
(
ret
,
"InstallColorProfileW() failed (%d)
\n
"
,
GetLastError
()
);
ret
=
pGetColorDirectoryW
(
NULL
,
dest
,
&
size
);
...
...
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