@@ -140,6 +140,7 @@ internal static async Task RunTest(
140140 bool testLive = true ,
141141 bool testDump = true ,
142142 bool testTriage = false ,
143+ bool testMini = false ,
143144 SOSRunner . DumpGenerator dumpGenerator = SOSRunner . DumpGenerator . CreateDump )
144145 {
145146 await RunTest ( scriptName ,
@@ -172,6 +173,21 @@ await RunTest(scriptName,
172173 } ,
173174 output ) ;
174175 }
176+ if ( testMini && ! config . PublishSingleFile )
177+ {
178+ await RunTest ( scriptName ,
179+ new SOSRunner . TestInformation
180+ {
181+ TestConfiguration = config ,
182+ TestName = testName ,
183+ TestLive = false ,
184+ TestDump = testDump ,
185+ DebuggeeName = debuggeeName ,
186+ DumpType = SOSRunner . DumpType . Mini ,
187+ DumpGenerator = dumpGenerator ,
188+ } ,
189+ output ) ;
190+ }
175191 }
176192
177193 internal static void TestCrashReport ( string dumpName , SOSRunner . TestInformation information )
@@ -238,18 +254,28 @@ public SOS(ITestOutputHelper output)
238254 public static IEnumerable < object [ ] > Configurations => SOSTestHelpers . GetConfigurations ( "TestName" , value : null ) ;
239255
240256 [ SkippableTheory , MemberData ( nameof ( SOSTestHelpers . GetNetCoreConfigurations ) , MemberType = typeof ( SOSTestHelpers ) ) ]
241- public async Task TriageDumpLocalVarLookup ( TestConfiguration config )
257+ public async Task MiniDumpLocalVarLookup ( TestConfiguration config )
242258 {
259+ if ( OS . Kind != OSKind . Windows )
260+ {
261+ throw new SkipTestException ( "Test only supports CDB and therefore only runs on Windows" ) ;
262+ }
263+
264+ if ( config . PublishSingleFile )
265+ {
266+ throw new SkipTestException ( "Single file does not support mini dumps" ) ;
267+ }
268+
243269 // The default dumpGenerator, CreateDump, only supports taking dumps at exceptions.
244270 // DotnetDump could support taking a dump at a breakpoint, but this SOS test framework doesn't currently support this operation.
245271 // Therefore we use the NativeDebugger to take a dump at the DebugBreak() call in the debuggee.
246272 await SOSTestHelpers . RunTest (
247273 config ,
248- debuggeeName : "TriageDumpLocalVarLookup " ,
249- scriptName : "TriageDumpLocalVarLookup .script" ,
274+ debuggeeName : "MiniDumpLocalVarLookup " ,
275+ scriptName : "MiniDumpLocalVarLookup .script" ,
250276 Output ,
251- testName : "SOS.TriageDumpLocalVarLookup " ,
252- testTriage : true ,
277+ testName : "SOS.MiniDumpLocalVarLookup " ,
278+ testMini : true ,
253279 dumpGenerator : SOSRunner . DumpGenerator . NativeDebugger ) ;
254280 }
255281
0 commit comments