ounit-strict-formats.diff
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-ounit?expand=0&rev=8
This commit is contained in:
parent
1de6bd5396
commit
6e5e689d46
@ -26,6 +26,7 @@ License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Url: http://ounit.forge.ocamlcore.org/
|
||||
Source0: %{distname}-%{version}.tar.gz
|
||||
Patch0: ounit-strict-formats.diff
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-findlib
|
||||
BuildRequires: ocaml-ocamlbuild
|
||||
@ -55,6 +56,8 @@ Development files needed for application based on %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{distname}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
ocaml setup.ml -configure \
|
||||
--bindir '%{_bindir}' \
|
||||
|
31
ounit-strict-formats.diff
Normal file
31
ounit-strict-formats.diff
Normal file
@ -0,0 +1,31 @@
|
||||
http://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1422&group_id=162&atid=732
|
||||
diff -r -u ounit.2.0.0.orig/src/oUnitLoggerHTML.ml ounit.2.0.0/src/oUnitLoggerHTML.ml
|
||||
--- ounit.2.0.0.orig/src/oUnitLoggerHTML.ml 2013-09-30 02:22:18.000000000 +0200
|
||||
+++ ounit.2.0.0/src/oUnitLoggerHTML.ml 2014-09-03 00:29:39.000000000 +0200
|
||||
@@ -198,22 +198,22 @@
|
||||
<div class='ounit-test %s'>
|
||||
<h2>%s (%s)</h2>
|
||||
<div class='ounit-started-at'>Started at: %s</div>
|
||||
- <div class='ounit-duration'>Test duration: %0.3fs</div>
|
||||
+ <div class='ounit-duration'>Test duration: %.3fs</div>
|
||||
<div class='ounit-log'>\n"
|
||||
class_result
|
||||
(html_escaper test_data.test_name)
|
||||
(html_escaper text_result)
|
||||
(date_iso8601 test_data.timestamp_start)
|
||||
(test_data.timestamp_end -. test_data.timestamp_start);
|
||||
- printf "<span class='ounit-timestamp'>%0.3fs</span>Start<br/>\n"
|
||||
+ printf "<span class='ounit-timestamp'>%.3fs</span>Start<br/>\n"
|
||||
0.0;
|
||||
List.iter (fun (tmstp, svrt, str) ->
|
||||
printf "\
|
||||
<span class='%s'>
|
||||
- <span class='ounit-timestamp'>%0.3fs</span>%s</span><br/>\n"
|
||||
+ <span class='ounit-timestamp'>%.3fs</span>%s</span><br/>\n"
|
||||
(class_severity_opt svrt) tmstp (html_escaper str))
|
||||
test_data.log_entries;
|
||||
- printf "<span class='ounit-timestamp'>%0.3fs</span>End<br/>\n"
|
||||
+ printf "<span class='ounit-timestamp'>%.3fs</span>End<br/>\n"
|
||||
(test_data.timestamp_end -. test_data.timestamp_start);
|
||||
printf "<div class='ounit-result'>";
|
||||
begin
|
Loading…
Reference in New Issue
Block a user