[med-svn] [opensurgsim] 02/02: Fixes TimerTest failures on mips, mipsel, and s390x

Paul Novotny paulnovo-guest at moszumanska.debian.org
Mon Sep 14 02:03:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

paulnovo-guest pushed a commit to branch master
in repository opensurgsim.

commit 3ba6f4e10f048f261c4badf3c884ff31261e7a6a
Author: Paul Novotny <paul at paulnovo.us>
Date:   Sun Sep 13 22:00:40 2015 -0400

    Fixes TimerTest failures on mips, mipsel, and s390x
---
 debian/patches/fix-timer.patch | 17 +++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/fix-timer.patch b/debian/patches/fix-timer.patch
new file mode 100644
index 0000000..7d98fe5
--- /dev/null
+++ b/debian/patches/fix-timer.patch
@@ -0,0 +1,17 @@
+Description: Fix Timer that caused test failures on mips, mipsel, and s390x 
+ std::accumulate was given an uninitialized value for its initial value. This
+ explicitly sets it to zero.
+Author: Paul Novotny <paul at paulnovo.us>
+Last-Update: 2015-09-13
+
+--- a/SurgSim/Framework/Timer.cpp
++++ b/SurgSim/Framework/Timer.cpp
+@@ -60,7 +60,7 @@
+ 	SURGSIM_ASSERT(m_frameDurations.size() > 0) <<
+ 		"Attempted to access the frames for a Timer with no frames.";
+ 	TimerDuration cumulativeTime = std::accumulate(std::begin(m_frameDurations), std::end(m_frameDurations),
+-		TimerDuration());
++		TimerDuration::zero());
+ 	return cumulativeTime.count();
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index f3a6aef..9ea7a91 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ backport-cb568a34f.patch
 backport-e762a2ea9.patch
 backport-d0a635981.patch
 dont-install-testing-libraries.patch
+fix-timer.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/opensurgsim.git



More information about the debian-med-commit mailing list