winetest: There is no special directory anymore.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1401f91307
commit
8e14f1f79a
|
@ -514,11 +514,8 @@ static void remove_dir (const char *dir)
|
||||||
|
|
||||||
static const char* get_test_source_file(const char* test, const char* subtest)
|
static const char* get_test_source_file(const char* test, const char* subtest)
|
||||||
{
|
{
|
||||||
static const char* special_dirs[][2] = {
|
|
||||||
{ 0, 0 }
|
|
||||||
};
|
|
||||||
static char buffer[MAX_PATH];
|
static char buffer[MAX_PATH];
|
||||||
int i, len = strlen(test);
|
int len = strlen(test);
|
||||||
|
|
||||||
if (len > 4 && !strcmp( test + len - 4, ".exe" ))
|
if (len > 4 && !strcmp( test + len - 4, ".exe" ))
|
||||||
{
|
{
|
||||||
|
@ -527,14 +524,6 @@ static const char* get_test_source_file(const char* test, const char* subtest)
|
||||||
}
|
}
|
||||||
else len = sprintf(buffer, "dlls/%s", test);
|
else len = sprintf(buffer, "dlls/%s", test);
|
||||||
|
|
||||||
for (i = 0; special_dirs[i][0]; i++) {
|
|
||||||
if (strcmp(test, special_dirs[i][0]) == 0) {
|
|
||||||
strcpy( buffer, special_dirs[i][1] );
|
|
||||||
len = strlen(buffer);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sprintf(buffer + len, "/tests/%s.c", subtest);
|
sprintf(buffer + len, "/tests/%s.c", subtest);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue