@@ -173,10 +173,11 @@ void main() {
173173 ProcessManager : () => processManager,
174174 });
175175
176- testUsingContext ('deletes entitlements.txt and without_entitlements.txt files after copying' , () async {
176+ testUsingContext ('deletes entitlements.txt, without_entitlements.txt, unsigned_binaries .txt files after copying' , () async {
177177 binary.createSync (recursive: true );
178178 final File entitlements = environment.outputDir.childFile ('entitlements.txt' );
179179 final File withoutEntitlements = environment.outputDir.childFile ('without_entitlements.txt' );
180+ final File unsignedBinaries = environment.outputDir.childFile ('unsigned_binaries.txt' );
180181 final File nestedEntitlements = environment
181182 .outputDir
182183 .childDirectory ('first_level' )
@@ -201,6 +202,7 @@ void main() {
201202 onRun: (_) {
202203 entitlements.writeAsStringSync ('foo' );
203204 withoutEntitlements.writeAsStringSync ('bar' );
205+ unsignedBinaries.writeAsStringSync ('baz' );
204206 nestedEntitlements.writeAsStringSync ('somefile.bin' );
205207 },
206208 ),
@@ -211,6 +213,7 @@ void main() {
211213 await const DebugUnpackMacOS ().build (environment);
212214 expect (entitlements.existsSync (), isFalse);
213215 expect (withoutEntitlements.existsSync (), isFalse);
216+ expect (unsignedBinaries.existsSync (), isFalse);
214217 expect (nestedEntitlements.existsSync (), isFalse);
215218
216219 expect (processManager, hasNoRemainingExpectations);
0 commit comments