Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
gpb
gpb-4.10.6-eunit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpb-4.10.6-eunit.patch of Package gpb
diff -Ndurp gpb-4.10.6/test/gpb_json_tests.erl gpb-4.10.6-eunit/test/gpb_json_tests.erl --- gpb-4.10.6/test/gpb_json_tests.erl 2019-11-02 15:14:35.000000000 +0200 +++ gpb-4.10.6-eunit/test/gpb_json_tests.erl 2020-10-31 11:17:00.219797997 +0200 @@ -44,14 +44,17 @@ -export([string_to_int/1, int_to_string/1]). -export([id/1]). --ifdef('OTP_RELEASE'). +-ifdef(OTP_RELEASE). +-if(?OTP_RELEASE >= 20). %% ?assertEqual/3 appeared in Erlang 20 already, %% but it is easier to test for 'OTP_RELEASE' which %% appeared in Erlang 21, and we need a fallback to %% support older releases anyway... -define(assert_eq_3(ExpectedExpr, ActualExpr, DebugInfo), ?assertEqual(ExpectedExpr, ActualExpr, DebugInfo)). --else. % -ifdef('OTP_RELEASE'). +-endif. +-endif. +-ifndef(assert_eq_3). %% Fallback -define(assert_eq_3(ExpectedExpr, ActualExpr, DebugInfo), ((fun() -> @@ -67,7 +70,7 @@ end end)())). --endif. % -ifdef('OTP_RELEASE'). +-endif. object_format_test() ->
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor