Add patch to fix tests with OCaml 5.2.0
This commit is contained in:
parent
9090b3d6bd
commit
3ab8c86605
13
ocaml-gettext-ocaml5.2.patch
Normal file
13
ocaml-gettext-ocaml5.2.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- ocaml-gettext-0.4.2/test/test.ml.orig 2020-06-11 14:40:42.000000000 -0600
|
||||
+++ ocaml-gettext-0.4.2/test/test.ml 2024-05-07 19:56:55.742155830 -0600
|
||||
@@ -278,8 +278,8 @@ let install_test =
|
||||
( "test7.mo",
|
||||
MoInvalidHeaderTableTranslationOutOfBound
|
||||
((28l, 2626l), (-49l, 111l)) );
|
||||
- ("test8.mo", MoInvalidStringOutOfBound (2626, 36));
|
||||
- ("test9.mo", MoInvalidTranslationOutOfBound (2626, 196));
|
||||
+ ("test8.mo", MoCannotOpenFile ("testdata/test8.mo"));
|
||||
+ ("test9.mo", MoCannotOpenFile ("testdata/test9.mo"));
|
||||
]
|
||||
@ List.map install_warning_test_one
|
||||
[
|
@ -26,6 +26,8 @@ Patch0: %{name}-ocaml5.patch
|
||||
# Adapt to changes in camomile 2.0
|
||||
# https://github.com/gildor478/ocaml-gettext/pull/27
|
||||
Patch1: %{name}-camomile2.patch
|
||||
# Two tests that are supposed to fail raise different errors under OCaml 5.2.0
|
||||
Patch2: %{name}-ocaml5.2.patch
|
||||
|
||||
BuildRequires: ocaml >= 4.03.0
|
||||
BuildRequires: ocaml-fileutils-devel >= 0.4.4-4
|
||||
@ -152,6 +154,9 @@ cat .ofiles-gettext-stub-devel >> .ofiles-gettext-devel
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed May 8 2024 Jerry James <loganjerry@gmail.com> - 0.4.2-19
|
||||
- Add patch to fix tests with OCaml 5.2.0
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user