@@ -47,9 +47,13 @@ test('the Simulator AX source returns raw acquisition facts and discloses unsupp
4747
4848 try {
4949 const result = await source . acquire ( {
50- target : { ...sourceTarget , targetId : 'target-1' } ,
50+ target : { ...sourceTarget , targetId : 'target-1' , simulatorSetPath : '/tmp/scoped-set' } ,
5151 hint,
5252 } ) ;
53+ assert . deepEqual (
54+ fixture . startedTargets . map ( ( started ) => started . simulatorSetPath ) ,
55+ [ '/tmp/scoped-set' ] ,
56+ ) ;
5357 assert . equal ( fixture . builds , 1 ) ;
5458 // Four identity probes and one clang build: the identity read execs one Xcode-owned binary.
5559 assert . equal ( fixture . runs , 5 ) ;
@@ -465,6 +469,7 @@ type AdapterFixture = {
465469 omitViewport : boolean ;
466470 omitRecovery : boolean ;
467471 diagnostics : Record < string , unknown > [ ] ;
472+ startedTargets : Array < Parameters < SnapshotSourceHost [ 'start' ] > [ 0 ] > ;
468473} ;
469474
470475function targetForTest ( ) {
@@ -492,6 +497,7 @@ function createAdapterHost(buildDelayMs = 0): AdapterFixture {
492497 omitViewport : false ,
493498 omitRecovery : false ,
494499 diagnostics : [ ] ,
500+ startedTargets : [ ] ,
495501 } ;
496502 const host : SnapshotSourceHost = {
497503 ...realHost ,
@@ -520,7 +526,10 @@ function createAdapterHost(buildDelayMs = 0): AdapterFixture {
520526 exitCode : 0 ,
521527 } ;
522528 } ,
523- start : ( ) => new AdapterProcess ( ) ,
529+ start : ( target ) => {
530+ fixture . startedTargets . push ( target ) ;
531+ return new AdapterProcess ( ) ;
532+ } ,
524533 connect : async ( ) => new AdapterSocket ( fixture ) ,
525534 readTargetProcessStartTime : async ( ) => 'target-start' ,
526535 } ;
0 commit comments