mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:57:19 +00:00
cabinet/tests: Initialize CURR_DIR globally.
So that we can run each test function independently.
This commit is contained in:
parent
535123c963
commit
316b5bc9b3
|
@ -409,13 +409,6 @@ static void createTestFile(const CHAR *name)
|
|||
|
||||
static void create_test_files(void)
|
||||
{
|
||||
DWORD len;
|
||||
|
||||
len = GetCurrentDirectoryA(MAX_PATH, CURR_DIR);
|
||||
|
||||
if(len && (CURR_DIR[len-1] == '\\'))
|
||||
CURR_DIR[len-1] = 0;
|
||||
|
||||
createTestFile("a.txt");
|
||||
createTestFile("b.txt");
|
||||
CreateDirectoryA("testdir", NULL);
|
||||
|
@ -944,6 +937,12 @@ static void test_FDICopy(void)
|
|||
|
||||
START_TEST(fdi)
|
||||
{
|
||||
int len;
|
||||
|
||||
len = GetCurrentDirectoryA(MAX_PATH, CURR_DIR);
|
||||
if (len && (CURR_DIR[len - 1] == '\\'))
|
||||
CURR_DIR[len - 1] = 0;
|
||||
|
||||
test_FDICreate();
|
||||
test_FDIDestroy();
|
||||
test_FDIIsCabinet();
|
||||
|
|
Loading…
Reference in a new issue