Commit a893207c authored by Robert Wilhelm's avatar Robert Wilhelm Committed by Alexandre Julliard

scrrun: Add test for GetTempName.

parent 2a072666
...@@ -472,6 +472,20 @@ static void test_GetFileName(void) ...@@ -472,6 +472,20 @@ static void test_GetFileName(void)
} }
} }
static void test_GetTempName(void)
{
BSTR result;
HRESULT hr;
hr = IFileSystem3_GetTempName(fs3, NULL);
ok(hr == E_POINTER, "GetTempName returned %x, expected E_POINTER\n", hr);
result = (BSTR)0xdeadbeef;
hr = IFileSystem3_GetTempName(fs3, &result);
ok(hr == S_OK, "GetTempName returned %x, expected S_OK\n", hr);
todo_wine ok(!!wcsstr( result,L".tmp"), "GetTempName returned %s, expected .tmp suffix\n", debugstr_w(result));
SysFreeString(result);
}
static void test_GetBaseName(void) static void test_GetBaseName(void)
{ {
static const struct static const struct
...@@ -2598,6 +2612,7 @@ START_TEST(filesystem) ...@@ -2598,6 +2612,7 @@ START_TEST(filesystem)
test_GetBaseName(); test_GetBaseName();
test_GetAbsolutePathName(); test_GetAbsolutePathName();
test_GetFile(); test_GetFile();
test_GetTempName();
test_CopyFolder(); test_CopyFolder();
test_BuildPath(); test_BuildPath();
test_GetFolder(); test_GetFolder();
......
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