kernel32/tests: Resource functions are not implemented on win98.

This commit is contained in:
Paul Vriens 2007-04-26 10:08:10 +02:00 committed by Alexandre Julliard
parent 4b34ba65d9
commit 87e8204365
1 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include "wine/test.h" #include "wine/test.h"
static const char filename[] = "test_.exe"; static const char filename[] = "test_.exe";
static DWORD GLE;
static int build_exe( void ) static int build_exe( void )
{ {
@ -107,7 +108,9 @@ static void update_missing_exe( void )
{ {
HANDLE res; HANDLE res;
SetLastError(0xdeadbeef);
res = BeginUpdateResource( filename, TRUE ); res = BeginUpdateResource( filename, TRUE );
GLE = GetLastError();
ok( res == NULL, "BeginUpdateResource should fail\n"); ok( res == NULL, "BeginUpdateResource should fail\n");
} }
@ -264,6 +267,13 @@ START_TEST(resource)
{ {
DeleteFile( filename ); DeleteFile( filename );
update_missing_exe(); update_missing_exe();
if (GLE == ERROR_CALL_NOT_IMPLEMENTED)
{
skip("Resource calls are not implemented\n");
return;
}
update_empty_exe(); update_empty_exe();
build_exe(); build_exe();
update_resources_none(); update_resources_none();