Commit 7b2a44f2 authored by Nicolas Le Cam's avatar Nicolas Le Cam Committed by Alexandre Julliard

msi/tests: Fix format test when run on root drive directory.

parent 13dfb9b3
......@@ -2361,12 +2361,14 @@ static void test_formatrecord_tables(void)
/* component with INSTALLSTATE_SOURCE */
lstrcpy( expected, "1: " );
lstrcat( expected, curr_dir );
lstrcat( expected, "\\ " );
if (strlen(curr_dir) > 3)
lstrcat( expected, "\\" );
lstrcat( expected, " " );
size = MAX_PATH;
MsiRecordSetString( hrec, 1, "[$parietal]" );
r = MsiFormatRecord( hpkg, hrec, buf, &size );
ok( r == ERROR_SUCCESS, "format record failed: %d\n", r);
ok( !lstrcmp( buf, expected ), "Expected '%s', got %s\n", expected, buf);
ok( !lstrcmp( buf, expected ), "Expected '%s', got '%s'\n", expected, buf);
sprintf( buf, "%sI am a really long directory\\temporal.txt", root );
DeleteFile( buf );
......
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