Uploaded image for project: 'ReactOS Test Suite'
  1. ReactOS Test Suite
  2. ROSTESTS-297

apitests/ntdll/NtAllocateVirtualMemory.c: "Reserve memory below 0x10000" check unexpectedly succeeds on ROS and WS03

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • ReactOS Tests
    • None

    Description

      It looks like this code/result is wrong.
      This seems trivial to fix, by whom knows what was intended.

      https://build.reactos.org/builders/Test%20WHS/builds/614 (r72321)
      ...
      https://build.reactos.org/builders/Test%20WHS/builds/1175

      Running Wine Test, Module: ntdll, Test: NtAllocateVirtualMemory
      NtAllocateVirtualMemory.c:586: Test failed: Wrong value for 'Status', expected: ((NTSTATUS)0xC00000F0) (0xc00000f0), got: 0x0
       
      NtAllocateVirtualMemory: 206 tests executed (0 marked as todo, 1 failure), 0 skipped.
      Test NtAllocateVirtualMemory completed in 0.11 seconds.

      https://build.reactos.org/builders/Test%20KVM/builds/18864
      https://build.reactos.org/builders/Test%20VBox/builds/6425

      ...
      NtAllocateVirtualMemory.c:586: Test failed: Wrong value for 'Status', expected: ((NTSTATUS)0xC00000F0) (0xc00000f0), got: 0x0
      ...

      Added in r62270 by ThePhysicist:

      544 	  	     /* Reserve memory below 0x10000 */
      545 	  	     Mem1 = UlongToPtr(0xf000);
      546 	  	     Size1 = 0x1000;
      547 	  	     Status = NtAllocateVirtualMemory(NtCurrentProcess(),
      548 	  	                                      &Mem1,
      549 	  	                                      0,
      550 	  	                                      &Size1,
      551 	  	                                      MEM_RESERVE,
      552 	  	                                      PAGE_READWRITE);
      553 	  	     ok_ntstatus(Status, STATUS_INVALID_PARAMETER_2);

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              Serge Gautherie Serge Gautherie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: