Re: kernel32/tests : added tests for copyfileex try7

2013-02-06 Thread Alexandre Julliard
Patrick Rudolph s...@das-labor.org writes:

 +if( !GetTempPathA( MAX_PATH,tmppath ) )
 +{
 +win_skip(GetTempPathA failed\n);
 +return;
 +}
 +
 +/* create a dummy file for copy tests */
 +if( !GetTempFileNameA( tmppath,IN,0,source_name ) )
 +{
 +win_skip(GetTempFileNameA failed\n);
 +return;
 +}
 +
 +/* create a dummy file for copy tests */
 +if( !GetTempFileNameA( tmppath,OUT,0,dest_name ) )
 +{
 +win_skip(GetTempFileNameA failed\n);
 +return;
 +}
 +
 +source_handle = CreateFileA( source_name, GENERIC_WRITE, 0, NULL, 
 OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 );
 +if( !source_handle )
 +{
 +win_skip(CreateFileA failed (%d)\n, GetLastError());
 +return;
 +}
 +
 +#define COPYFILEEXFILESIZE 1000
 +
 +/* set filesize to COPYFILEEXFILESIZE */
 +TotalFileSize.QuadPart = COPYFILEEXFILESIZE;
 +
 +if( !pSetFilePointerEx(source_handle,TotalFileSize,NULL,FILE_BEGIN) )
 +{
 +win_skip(SetFilePointerEx failed (%d)\n, GetLastError());
 +return;
 +}
 +
 +if( !pSetEndOfFile(source_handle) )
 +{
 +win_skip(SetEndOfFile failed (%d)\n, GetLastError());
 +return;
 +}

All these calls are not supposed to fail on Windows either. win_skip is
not appropriate.

-- 
Alexandre Julliard
julli...@winehq.org




Re: kernel32/tests : added tests for copyfileex try7

2013-02-01 Thread Marvin
Hi,

While running your changed tests on Windows, I think I found new failures.
Being a bot and all I'm not very good at pattern recognition, so I might be
wrong, but could you please double-check?
Full results can be found at
http://testbot.winehq.org/JobDetails.pl?Key=24239

Your paranoid android.


=== WNT4WSSP6 (32 bit path) ===
path: unhandled exception c005 at