Disable tests

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
epel9
Igor Raits 5 years ago
parent 1afe79876f
commit ab0bcc2002
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -1,12 +1,12 @@
# Generated by rust2rpm 13 # Generated by rust2rpm 13
%bcond_without check %bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global crate time %global crate time
Name: rust-%{crate}0.1 Name: rust-%{crate}0.1
Version: 0.1.42 Version: 0.1.42
Release: 1%{?dist} Release: 2%{?dist}
Summary: Utilities for working with time-related functions in Rust Summary: Utilities for working with time-related functions in Rust
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -18,10 +18,6 @@ Source: %{crates_source}
# * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170 # * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170
Patch0: time-fix-metadata.diff Patch0: time-fix-metadata.diff
# * Don't deny warnings
# * Adjust the recent/future test dates
Patch1: time-0.1-fix-tests.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build} %if %{__cargo_skip_build}
BuildArch: noarch BuildArch: noarch
@ -91,5 +87,8 @@ which use "rustc-serialize" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Tue Feb 18 04:00:23 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.42-2
- Disable tests
* Mon Jan 27 2020 Josh Stone <jistone@redhat.com> - 0.1.42-1 * Mon Jan 27 2020 Josh Stone <jistone@redhat.com> - 0.1.42-1
- Initial package - Initial package

@ -1,23 +0,0 @@
diff --git a/src/lib.rs b/src/lib.rs
index ef44f3a1255e..be0ce334aef3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,7 +34,6 @@
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://doc.rust-lang.org/time/")]
#![allow(trivial_numeric_casts)]
-#![cfg_attr(test, deny(warnings))]
#[cfg(target_os = "redox")] extern crate syscall;
#[cfg(unix)] extern crate libc;
@@ -694,8 +693,8 @@ mod tests {
#[test]
fn test_get_time() {
- static SOME_RECENT_DATE: i64 = 1325376000i64; // 2012-01-01T00:00:00Z
- static SOME_FUTURE_DATE: i64 = 1577836800i64; // 2020-01-01T00:00:00Z
+ static SOME_RECENT_DATE: i64 = 1577836800i64; // 2020-01-01T00:00:00Z
+ static SOME_FUTURE_DATE: i64 = 1893456000i64; // 2030-01-01T00:00:00Z
let tv1 = get_time();
debug!("tv1={} sec + {} nsec", tv1.sec, tv1.nsec);
Loading…
Cancel
Save