Skip to content
  • Ben Gamari's avatar
    ghc-heap: Skip heap_all test with debugged RTS · 0fb0b744
    Ben Gamari authored
    The debugged RTS initializes the heap with 0xaa, which breaks the
    (admittedly rather fragile) assumption that uninitialized fields are set
    to 0x00:
    ```
    Wrong exit code for heap_all(nonmoving)(expected 0 , actual 1 )
    Stderr ( heap_all ):
    heap_all: user error (assertClosuresEq: Closures do not match
    Expected: FunClosure {info = StgInfoTable {entry = Nothing, ptrs = 0, nptrs = 1, tipe = FUN_0_1, srtlen = 0, code = Nothing}, ptrArgs = [], dataArgs = [0]}
    Actual:   FunClosure {info = StgInfoTable {entry = Nothing, ptrs = 0, nptrs = 1, tipe = FUN_0_1, srtlen = 1032832, code = Nothing}, ptrArgs = [], dataArgs = [12297829382473034410]}
    
    CallStack (from HasCallStack):
      assertClosuresEq, called at heap_all.hs:230:9 in main:Main
    )
    ```
    0fb0b744