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:
Francois Gouget 2017-02-10 16:39:32 +01:00 committed by Alexandre Julliard
parent 1401f91307
commit 8e14f1f79a
1 changed files with 1 additions and 12 deletions

View File

@ -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* special_dirs[][2] = {
{ 0, 0 }
};
static char buffer[MAX_PATH];
int i, len = strlen(test);
int len = strlen(test);
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);
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);
return buffer;
}