Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ecb2d7bd
Commit
ecb2d7bd
authored
Feb 06, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Report the correct source directory for program tests.
parent
6fae8e1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
main.c
programs/winetest/main.c
+11
-3
No files found.
programs/winetest/main.c
View file @
ecb2d7bd
...
@@ -300,16 +300,24 @@ static const char* get_test_source_file(const char* test, const char* subtest)
...
@@ -300,16 +300,24 @@ static const char* get_test_source_file(const char* test, const char* subtest)
{
0
,
0
}
{
0
,
0
}
};
};
static
char
buffer
[
MAX_PATH
];
static
char
buffer
[
MAX_PATH
];
int
i
;
int
i
,
len
=
strlen
(
test
);
if
(
len
>
4
&&
!
strcmp
(
test
+
len
-
4
,
".exe"
))
{
len
=
sprintf
(
buffer
,
"programs/%s"
,
test
)
-
4
;
buffer
[
len
]
=
0
;
}
else
len
=
sprintf
(
buffer
,
"dlls/%s"
,
test
);
for
(
i
=
0
;
special_dirs
[
i
][
0
];
i
++
)
{
for
(
i
=
0
;
special_dirs
[
i
][
0
];
i
++
)
{
if
(
strcmp
(
test
,
special_dirs
[
i
][
0
])
==
0
)
{
if
(
strcmp
(
test
,
special_dirs
[
i
][
0
])
==
0
)
{
test
=
special_dirs
[
i
][
1
];
strcpy
(
buffer
,
special_dirs
[
i
][
1
]
);
len
=
strlen
(
buffer
);
break
;
break
;
}
}
}
}
s
nprintf
(
buffer
,
sizeof
(
buffer
),
"dlls/%s/tests/%s.c"
,
test
,
subtest
);
s
printf
(
buffer
+
len
,
"/tests/%s.c"
,
subtest
);
return
buffer
;
return
buffer
;
}
}
...
...
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