~ubuntu-wine/ubuntu/lucid/wine1.2/wine1.2+winepulse

« back to all changes in this revision

Viewing changes to dlls/ntdll/tests/info.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-02-02 11:15:03 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100202111503-w4ayji21ei1ginjr
Tags: 1.1.37-0ubuntu1
* New upstream release
  - A number of fixes in AVI file support.
  - Several MSXML improvements.
  - A few MSI fixes.
  - Various bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    HMODULE hntdll = GetModuleHandle("ntdll");
48
48
    if (!hntdll)
49
49
    {
50
 
        skip("Not running on NT\n");
 
50
        win_skip("Not running on NT\n");
51
51
        return FALSE;
52
52
    }
53
53
 
290
290
 
291
291
    is_nt = ( spi->NextEntryOffset - (sbi.NumberOfProcessors * sizeof(SYSTEM_THREAD_INFORMATION)) == 136);
292
292
 
293
 
    if (is_nt) skip("Windows version is NT, we will skip thread tests\n");
 
293
    if (is_nt) win_skip("Windows version is NT, we will skip thread tests\n");
294
294
 
295
295
    /* Check if we have some return values
296
296
     * 
666
666
    status = pNtQueryInformationProcess( GetCurrentProcess(), ProcessIoCounters, &pii, sizeof(pii), &ReturnLength);
667
667
    if (status == STATUS_NOT_SUPPORTED)
668
668
    {
669
 
        skip("ProcessIoCounters information class is not supported\n");
 
669
        win_skip("ProcessIoCounters information class is not supported\n");
670
670
        return;
671
671
    }
672
672
 
809
809
    status = pNtQueryInformationProcess(NULL, ProcessImageFileName, &image_file_name, sizeof(image_file_name), NULL);
810
810
    if (status == STATUS_INVALID_INFO_CLASS)
811
811
    {
812
 
        skip("ProcessImageFileName is not supported\n");
 
812
        win_skip("ProcessImageFileName is not supported\n");
813
813
        return;
814
814
    }
815
815
    ok( status == STATUS_INVALID_HANDLE, "Expected STATUS_INVALID_HANDLE, got %08x\n", status);
878
878
    ok( readcount == 12, "Expected to read 12 bytes, got %ld\n",readcount);
879
879
    ok( strcmp(teststring, buffer) == 0, "Expected read memory to be the same as original memory\n");
880
880
 
881
 
    /* this test currently crashes wine with "wine client error:<process id>: read: Bad address"
882
 
     * because the reply from wine server is directly read into the buffer and that fails with EFAULT
883
 
     */
884
881
    /* illegal local address */
885
 
    /*status = pNtReadVirtualMemory(process, teststring, (void *)0x1234, 12, &readcount);
886
 
    ok( status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got %08lx\n", status);
 
882
    status = pNtReadVirtualMemory(process, teststring, (void *)0x1234, 12, &readcount);
 
883
    ok( status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got %08x\n", status);
887
884
    ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount);
888
 
    */
889
885
 
890
886
    CloseHandle(process);
891
887
}