ocamlPackages.tcpip: fix tests with alcotest 1.4.0

This commit is contained in:
Vincent Laporte 2021-07-06 21:51:00 +02:00 committed by Vincent Laporte
parent 2d1f4d4dab
commit 14a2f48bf2

View File

@ -26,6 +26,14 @@ buildDunePackage rec {
./makefile-no-opam.patch
];
# Make tests compatible with alcotest 1.4.0
postPatch = ''
for p in common.ml test_tcp_options.ml
do
substituteInPlace test/$p --replace 'Fmt.kstrf Alcotest.fail' 'Fmt.kstrf (fun s -> Alcotest.fail s)'
done
'';
nativeBuildInputs = [
bisect_ppx
ppx_cstruct