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) ...@@ -409,13 +409,6 @@ static void createTestFile(const CHAR *name)
static void create_test_files(void) 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("a.txt");
createTestFile("b.txt"); createTestFile("b.txt");
CreateDirectoryA("testdir", NULL); CreateDirectoryA("testdir", NULL);
...@@ -944,6 +937,12 @@ static void test_FDICopy(void) ...@@ -944,6 +937,12 @@ static void test_FDICopy(void)
START_TEST(fdi) 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_FDICreate();
test_FDIDestroy(); test_FDIDestroy();
test_FDIIsCabinet(); 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