@@ -286,16 +286,21 @@ end
286
286
platform = Platform (" x86_64" , os)
287
287
mktempdir () do build_path
288
288
build_output_meta = nothing
289
- @test_logs (:info , r" removing libtool file .*/destdir/lib/libfoo.la$" ) match_mode= :any begin
289
+ @test_logs (:info , r" Removing libtool file .*/destdir/lib/libfoo.la$ " ) ( :info , r" Removing libtool file .*/destdir/lib/libqux .la$" ) match_mode= :any begin
290
290
build_output_meta = autobuild (
291
291
build_path,
292
292
" libfoo" ,
293
293
v " 1.0.0" ,
294
294
# Copy in the libfoo sources
295
295
[DirectorySource (build_tests_dir)],
296
- # Build libfoo using autotools to create a real .la file,
297
- # and also create a fake .la file (which should not be removed)
298
- libfoo_autotools_script * " \n touch \$ {prefix}/lib/libbar.la" ,
296
+ # Build libfoo using autotools to create a real .la file, and also
297
+ # create a fake .la file (which should not be removed). Create also a
298
+ # symlink libqux.la -> libfoo.la, which will be broken after libfoo.la
299
+ # has been deleted: remove libqux.la as well
300
+ libfoo_autotools_script * raw """
301
+ touch ${prefix}/lib/libbar.la
302
+ ln -s ${prefix}/lib/libfoo.la ${prefix}/lib/libqux.la
303
+ """ ,
299
304
# Build for our platform
300
305
[platform],
301
306
# The products we expect to be build
@@ -309,10 +314,11 @@ end
309
314
tarball_path, tarball_hash = build_output_meta[platform][1 : 2 ]
310
315
@test isfile (tarball_path)
311
316
312
- # Test that `libfoo.la` has been removed but `libbar.la` hasn't
317
+ # Test that `libfoo.la` and `libqux.la` have been removed but `libbar.la` hasn't
313
318
contents = list_tarball_files (tarball_path)
314
319
@test " lib/libbar.la" in contents
315
320
@test ! (" lib/libfoo.la" in contents)
321
+ @test ! (" lib/libqux.la" in contents)
316
322
end
317
323
end
318
324
end
0 commit comments