提交 9d87018f 编写于 作者: J Jeremy Bicha

Fix qt6 autopkgtest

上级 4bbbb4eb
...@@ -10,5 +10,5 @@ else ...@@ -10,5 +10,5 @@ else
fi fi
cd $AUTOPKGTEST_TMP cd $AUTOPKGTEST_TMP
${CROSS_COMPILE}g++ -Wall -Werror -pedantic -Wno-long-long -Wno-deprecated-declarations -fPIC -std=c++11 -o poppler-qt6-test $SRCDIR/test-qt6.cpp `${CROSS_COMPILE}pkg-config --cflags --libs poppler-qt6 qt6Core` ${CROSS_COMPILE}g++ -Wall -Werror -pedantic -Wno-long-long -Wno-deprecated-declarations -fPIC -std=c++17 -o poppler-qt6-test $SRCDIR/test-qt6.cpp `${CROSS_COMPILE}pkg-config --cflags --libs poppler-qt6 Qt6Core`
./poppler-qt6-test "/usr/share/cups/data/default-testpage.pdf" ./poppler-qt6-test "/usr/share/cups/data/default-testpage.pdf"
#include <poppler-qt6.h>
#include <QtCore/QFile>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2)
return EXIT_FAILURE;
std::unique_ptr<Poppler::Document> doc = Poppler::Document::load(QFile::decodeName(argv[1]));
Q_ASSERT(doc);
Q_ASSERT(!doc->isLocked());
int n_pages = doc->numPages();
Q_ASSERT(n_pages > 0);
return EXIT_SUCCESS;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册