You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Inline-C/Inline-C-0.80-test-Adjust-e...

45 lines
1.4 KiB

From 6f8b68c71fb57393cdd0b789dc68ae9c7d0c1d34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 30 Apr 2019 15:32:43 +0200
Subject: [PATCH] test: Adjust excpected number of lines in log to
Inline-0.82_001
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This Inline change:
commit 13fd62a675c9de3c1fdb734898a689155647c5b1 (HEAD, origin/config-accum)
Author: Ed J <mohawk2@users.noreply.github.com>
Date: Tue Apr 2 18:37:12 2019 +0100
merge per-language config, not overwrite
available in Inline-0.82_001 changed log file content and Inline-C 09parser.t
test started to fail. This patch adjust the test to pass with old and new Inline.
https://github.com/ingydotnet/inline-c-pm/issues/88
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/09parser.t | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/t/09parser.t b/t/09parser.t
index 28b2148..0c94bf9 100644
--- a/t/09parser.t
+++ b/t/09parser.t
@@ -177,7 +177,9 @@ is ($res, $prod, "Returned product");
chomp (my @p = do { local @ARGV = "$TestInlineSetup::DIR/parser_id"; <> });
-is (scalar @p, 21, "Match number of lines in log");
+my $expected_log_lines = 13;
+$expected_log_lines += 8 if $Inline::VERSION < 0.82_001;
+is (scalar @p, $expected_log_lines, "Match number of lines in log");
TODO: {
local $TODO = 'Until pegex is default';
--
2.20.1