From a998212c71caacf5751cee6cf3b91a5df9f7f5eb Mon Sep 17 00:00:00 2001 From: Led Date: Mon, 23 Sep 2024 17:10:52 +0300 Subject: [PATCH] json_tests: disable tests for Erlang/OTP 27 --- test/json_tests.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/json_tests.erl b/test/json_tests.erl index 9f2d45a..d5419b4 100644 --- a/test/json_tests.erl +++ b/test/json_tests.erl @@ -1,5 +1,12 @@ -module(json_tests). +-ifdef(OTP_RELEASE). +-if(?OTP_RELEASE =:= 27). +-define(OTP_RELEASE_27, true). +-endif. +-endif. + +-ifndef(OTP_RELEASE_27). -compile({parse_transform, otpbp_pt}). -include_lib("eunit/include/eunit.hrl"). @@ -594,3 +601,4 @@ format_fun_test() -> /utf8>>, ?assertEqual(Formatted, format(All, Formatter)), ok. +-endif.