* tests/scripts/features/archives: [SV 54395] Support non-GNU ar.

This commit is contained in:
Paul Smith 2019-08-25 13:47:13 -04:00
parent 39bf50b2da
commit 2e388a18a1

View file

@ -218,7 +218,9 @@ if ($osname eq 'VMS') {
if ($osname ne 'VMS') {
my $pre = '1234567890123456';
my $lib = 'foo.a';
my $lib = 'libxx.a';
my $cr = $created;
$cr =~ s#a1\.o#${pre}a#;
run_make_test(qq!
# Both member names > 16 characters long
@ -228,7 +230,7 @@ default: $lib(${pre}a) $lib(${pre}b)
$pre%: ; touch \$\@
!,
$arvar, "touch ${pre}a\n$ar $arflags $lib ${pre}a\n$ar: creating $lib\na - ${pre}a\ntouch ${pre}b\n$ar $arflags $lib ${pre}b\na - ${pre}b\nrm ${pre}a ${pre}b\n");
$arvar, "touch ${pre}a\n$ar $arflags $lib ${pre}a\n${cr}touch ${pre}b\n$ar $arflags $lib ${pre}b\na - ${pre}b\nrm ${pre}a ${pre}b\n");
# Run it again; nothing should happen
run_make_test(undef, $arvar, "#MAKE#: Nothing to be done for 'default'.\n");