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
86a0b291
Commit
86a0b291
authored
Oct 21, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv/tests: Skip a few tests on NT4.
parent
8b01f4ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
userenv.c
dlls/userenv/tests/userenv.c
+26
-4
No files found.
dlls/userenv/tests/userenv.c
View file @
86a0b291
...
...
@@ -162,8 +162,6 @@ static void test_create_env(void)
int
i
,
j
;
static
const
struct
profile_item
common_vars
[]
=
{
{
"ALLUSERSPROFILE"
,
{
1
,
1
,
0
,
0
}
},
{
"CommonProgramFiles"
,
{
1
,
1
,
1
,
1
}
},
{
"ComSpec"
,
{
1
,
1
,
0
,
0
}
},
{
"COMPUTERNAME"
,
{
1
,
1
,
1
,
1
}
},
{
"NUMBER_OF_PROCESSORS"
,
{
1
,
1
,
0
,
0
}
},
...
...
@@ -174,7 +172,11 @@ static void test_create_env(void)
{
"PROCESSOR_REVISION"
,
{
1
,
1
,
0
,
0
}
},
{
"SystemDrive"
,
{
1
,
1
,
0
,
0
}
},
{
"SystemRoot"
,
{
1
,
1
,
0
,
0
}
},
{
"windir"
,
{
1
,
1
,
0
,
0
}
},
{
"windir"
,
{
1
,
1
,
0
,
0
}
}
};
static
const
struct
profile_item
common_post_nt4_vars
[]
=
{
{
"ALLUSERSPROFILE"
,
{
1
,
1
,
0
,
0
}
},
{
"CommonProgramFiles"
,
{
1
,
1
,
1
,
1
}
},
{
"ProgramFiles"
,
{
1
,
1
,
0
,
0
}
}
};
static
const
struct
profile_item
htok_vars
[]
=
{
...
...
@@ -216,7 +218,7 @@ static void test_create_env(void)
r
=
CreateEnvironmentBlock
((
LPVOID
)
&
env
[
3
],
htok
,
TRUE
);
expect
(
TRUE
,
r
);
/* Test for common environment variables */
/* Test for common environment variables
(NT4 and higher)
*/
for
(
i
=
0
;
i
<
sizeof
(
common_vars
)
/
sizeof
(
common_vars
[
0
]);
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
...
...
@@ -229,6 +231,26 @@ static void test_create_env(void)
}
}
/* Test for common environment variables (post NT4) */
if
(
!
GetEnvironmentVariableA
(
"ALLUSERSPROFILE"
,
NULL
,
0
))
{
win_skip
(
"Some environment variables are not present on NT4
\n
"
);
}
else
{
for
(
i
=
0
;
i
<
sizeof
(
common_post_nt4_vars
)
/
sizeof
(
common_post_nt4_vars
[
0
]);
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
{
r
=
get_env
(
env
[
j
],
common_post_nt4_vars
[
i
].
name
,
&
st
);
if
(
common_post_nt4_vars
[
i
].
todo
[
j
])
todo_wine
expect_env
(
TRUE
,
r
,
common_post_nt4_vars
[
i
].
name
);
else
expect_env
(
TRUE
,
r
,
common_post_nt4_vars
[
i
].
name
);
}
}
}
/* Test for environment variables with values that depends on htok */
for
(
i
=
0
;
i
<
sizeof
(
htok_vars
)
/
sizeof
(
htok_vars
[
0
]);
i
++
)
{
...
...
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