Fix an autopkgtest on arm (Closes:# 1010716) Thanks to Pino Toscano for the patch

This commit is contained in:
Sylvestre Ledru 2022-05-09 20:41:22 +02:00
parent 5e588bb5a8
commit 0ad684fcfc
2 changed files with 10 additions and 3 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-14 (1:14.0.3-2) UNRELEASED; urgency=medium
* Fix an autopkgtest on arm (Closes:# 1010716)
Thanks to Pino Toscano for the patch
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 09 May 2022 20:40:39 +0200
llvm-toolchain-14 (1:14.0.3-1) unstable; urgency=medium
* New upstream release

View File

@ -350,9 +350,9 @@ void increment(atomic_size_t *arg) {
clang-$VERSION -v -c foo.c &> /dev/null
echo "#include <fenv.h>" > foo.cc
NBLINES=$(clang++-$VERSION -P -E foo.cc|wc -l)
if test $NBLINES -lt 100; then
echo "Error: more than 100 lines should be returned"
NBLINES=$(clang++-$VERSION -P -E foo.cc|grep .|wc -l)
if test $NBLINES -lt 60; then
echo "Error: more than 60 non-empty lines should be returned"
echo "output:"
clang++-$VERSION -P -E foo.cc
exit 42