fix test
This commit is contained in:
parent
0678129056
commit
7d775ee4a7
21
fix-test.patch
Normal file
21
fix-test.patch
Normal file
@ -0,0 +1,21 @@
|
||||
From 9c46fc2657dfae756d17a8a25ab8cd6c124f1f7b Mon Sep 17 00:00:00 2001
|
||||
From: Prajith <me@prajith.in>
|
||||
Date: Thu, 2 Jan 2020 11:51:23 +0530
|
||||
Subject: [PATCH] Update Test t/getdate.t
|
||||
|
||||
---
|
||||
t/getdate.t | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/t/getdate.t b/t/getdate.t
|
||||
index 31b577b..82c5850 100644
|
||||
--- a/t/getdate.t
|
||||
+++ b/t/getdate.t
|
||||
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;1027332000
|
||||
!;
|
||||
|
||||
require Time::Local;
|
||||
-my $offset = Time::Local::timegm(0,0,0,1,0,70);
|
||||
+my $offset = Time::Local::timegm(0,0,0,1,0,1970);
|
||||
|
||||
@data = split(/\n/, $data);
|
||||
@ -1,11 +1,12 @@
|
||||
Name: perl-TimeDate
|
||||
Version: 2.30
|
||||
Epoch: 1
|
||||
Release: 17
|
||||
Release: 18
|
||||
Summary: Perl5 TimeDate distribution
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/TimeDate
|
||||
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
|
||||
Patch0001: fix-test.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-generators perl(base) perl(Carp)
|
||||
BuildRequires: perl(Exporter) perl(ExtUtils::MakeMaker) perl(strict)
|
||||
@ -40,7 +41,7 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
%{__chmod} -Rf a+rX,u+w,g-w,o-w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
#make test
|
||||
make test
|
||||
|
||||
%files
|
||||
%{perl_vendorlib}/
|
||||
@ -52,6 +53,12 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 06 2020 yanzhihua <yanzhihua4@huawei.com> - 1:2.30-18
|
||||
- Type:bugs
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: fix test
|
||||
|
||||
* Wed Jan 22 2020 gulining<gulining1@huawei.com> - 1:2.30-17
|
||||
- Disable test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user