Rise
The Vieneo Province
Loading...
Searching...
No Matches
Crash Capture tests

Checks process-fault capture, crash-helper replacement and isolated child-process completion.

Subsystem: Diagnostics, profiling, packaging and runtime integrity
Fixture/harness: crashcapturetests
Setup: The standalone CrashCaptureTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/CrashCaptureTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Debug|x64, Release|x64.

CrashCaptureTests.cpp

Source: Tests/CrashCaptureTests.cpp

Check Helper Updates

Fixture: Crash Capture tests
Case symbol: CheckHelperUpdates
Source: Tests/CrashCaptureTests.cpp:45

Test
Check Helper Updates: start previous helper to reproduce executable lock; hold temporary helper replacement lock; blocked update still starts the installed helper.
Source check messages (including original failure wording)

  • start previous helper to reproduce executable lock
  • hold temporary helper replacement lock
  • blocked update still starts the installed helper
  • deferred update preserves the replacement error
  • helper replacement retries are bounded
  • failed replacement preserves installed helper and staged update
  • native dump capture works while installed helper replacement is blocked
  • deferred update fallback saves a complete dump
  • install staged helper before invoking it
  • successful update consumes staged file and installs complete executable
  • retry succeeds after temporary lock releases
  • next startup installs pending update after previous helper exits
  • retried update consumes staged file

Entry-point checks

Fixture: Crash Capture tests
Case symbol: wmain
Source: Tests/CrashCaptureTests.cpp:110

Test
Entry-point checks: capture completed before child exit; exactly one dump for fault, none for normal exit; faulting thread identity preserved.
Source check messages (including original failure wording)

  • create isolated child
  • capture completed before child exit
  • exactly one dump for fault, none for normal exit
  • bounded dump size
  • exception stream present
  • exception code preserved
  • faulting thread identity preserved
  • original instruction address preserved
  • write violation target preserved
  • original x64 register context preserved
  • original x86 register context preserved
  • thread stacks captured (including multiple threads for worker fault)
  • module stream present
  • PDB GUID and age captured for later symbol lookup
  • true saved stack unwinds to Fault and its caller using matching PDB
  • saved stack resolves source line numbers
  • context provenance recorded honestly
  • missing helper detected without blocking launch
  • missing helper diagnostic identifies the failed operation and exact path
  • missing helper preserves quick fatal fallback
  • queue path failure is distinguished from helper launch failure
  • start stalled-helper fixture
  • stalled helper cannot block crash thread beyond capture timeout