Checks optional diagnostic-file access when another client holds a legacy log open.
Subsystem: Diagnostics, profiling, packaging and runtime integrity
Fixture/harness: optionaldiagnosticfiletests
Setup: The standalone OptionalDiagnosticFileTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/OptionalDiagnosticFileTests.vcxproj; declared configurations: Debug|Win32, Release|Win32.
OptionalDiagnosticFileTests.cpp
Source: Tests/OptionalDiagnosticFileTests.cpp
Entry-point checks
Fixture: Optional Diagnostic File tests
Case symbol: main
Source: Tests/OptionalDiagnosticFileTests.cpp:29
- Test
- Checks a second client handles an unavailable locked diagnostic log without triggering the reproduced invalid-parameter failure, while the first client can keep writing.
Source check messages (including original failure wording)
-
Could not lock legacy fixture
-
Second client did not fail to open the locked log
-
Original failed-open write did not reproduce CRT invalid parameter
-
First client could not write diagnostic log
-
Second client unexpectedly acquired locked log
-
Second client disrupted first client's stream
-
Locked log was truncated or normal output changed
-
Next client did not regain the released log
-
Protected two-client logging called invalid parameter handler
-
Missing-parent log unexpectedly opened
-
Could not make read-only fixture
-
Read-only log unexpectedly opened
-
Read-only log contents changed
-
Oversized optional diagnostic failed
-
Oversized diagnostic was not safely bounded
-
Failed open or long diagnostic called invalid parameter handler