]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bug_62343: Skip test if not building libtool libs
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 11 May 2024 08:19:28 +0000 (11:19 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 11 May 2024 08:19:28 +0000 (11:19 +0300)
When the configure option "--disable-shared" is used, this test will be
skipped since no libtool libs are built.

tests/bug_62343.at: Check if build_libtool_libs is set to no.

tests/bug_62343.at

index 385cc413b298a14c28b765c8bd0fe52368299cbd..05839dc4fb9bc2bce32b3d586678618e7056040b 100644 (file)
@@ -25,6 +25,8 @@ AT_BANNER([Testing bug 62343:])
 
 AT_SETUP([Use -no-canonical-prefixes flag])
 
+AT_CHECK([$LIBTOOL --config | $EGREP '^build_libtool_libs=no' && (exit 77)], 1)
+
 AT_DATA([x.cpp],
 [[
 void f(int *p) { *p = 21; }