From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#34207: grantlee fails to build Date: Sat, 26 Jan 2019 11:47:23 +0100 Message-ID: <87a7jnvgp0.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnLjs-0003C4-3R for bug-guix@gnu.org; Sat, 26 Jan 2019 06:03:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnLjr-0001bB-7r for bug-guix@gnu.org; Sat, 26 Jan 2019 06:03:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnLjr-0001ZV-4q for bug-guix@gnu.org; Sat, 26 Jan 2019 06:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gnLjp-0000it-Qo for bug-guix@gnu.org; Sat, 26 Jan 2019 06:03:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:36278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnLjc-00036N-TW for bug-guix@gnu.org; Sat, 26 Jan 2019 06:02:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnLjc-0001SA-6F for bug-guix@gnu.org; Sat, 26 Jan 2019 06:02:48 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21108) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gnLjb-0001Qg-BH for bug-guix@gnu.org; Sat, 26 Jan 2019 06:02:48 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 34207@debbugs.gnu.org Grantlee has two test failures: --8<---------------cut here---------------start------------->8--- FAIL! : TestFilters::testDateBasedFilters(date01) Compared values are not = the same Actual (result): "" Expected (output): "01" Loc: [/tmp/guix-build-grantlee-5.1.0.drv-0/grantlee-5.1.0/templates/test= s/testfilters.cpp(117)] FAIL! : TestFilters::testDateBasedFilters(date02) Compared values are not = the same Actual (result): "" Expected (output): "Jan. 1, 2008" Loc: [/tmp/guix-build-grantlee-5.1.0.drv-0/grantlee-5.1.0/templates/test= s/testfilters.cpp(117)] --8<---------------cut here---------------end--------------->8--- The tests in templates/tests/testfilters.cpp look like this: --8<---------------cut here---------------start------------->8--- Dict dict; =E2=80=A6 QDateTime d(QDate(2008, 1, 1)); dict.clear(); dict.insert(QStringLiteral("d"), d); QTest::newRow("date01") << "{{ d|date:\"MM\" }}" << dict << QStringLiteral("01") << NoError; QTest::newRow("date02") << QStringLiteral("{{ d|date }}") << dict << d.toString(QStringLiteral("MMM. d, yyyy")) << NoError; --8<---------------cut here---------------end--------------->8--- The following test for =E2=80=9Cdate03=E2=80=9D passes: --8<---------------cut here---------------start------------->8--- dict.insert(QStringLiteral("d"), QStringLiteral("fail_string")); QTest::newRow("date03") << "{{ d|date:\"MM\" }}" << dict << QString() << NoError; --8<---------------cut here---------------end--------------->8--- IIUC this means: some non-date is injected and the template resulted in the empty string. -- Ricardo