Commit 316b5bc9 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

cabinet/tests: Initialize CURR_DIR globally.

So that we can run each test function independently.
parent 535123c9
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment