scrrun: Add test for GetTempName.

Signed-off-by: Robert Wilhelm <robert.wilhelm@gmx.net>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Robert Wilhelm 2022-01-24 21:41:13 +01:00 committed by Alexandre Julliard
parent 2a07266607
commit a893207c71
1 changed files with 15 additions and 0 deletions

View File

@ -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 const struct
@ -2598,6 +2612,7 @@ START_TEST(filesystem)
test_GetBaseName();
test_GetAbsolutePathName();
test_GetFile();
test_GetTempName();
test_CopyFolder();
test_BuildPath();
test_GetFolder();