Skip to content

Commit 818e5b0

Browse files
committed
Protect OTP26 setup for older OTPs.
1 parent 96cf782 commit 818e5b0

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

test/power_shell_SUITE.erl

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,22 @@ export_all() ->
234234
local_bad_match(),
235235
rebind([]),
236236
external_filter([]),
237-
map_comprehension_from_list(),
238-
map_comprehension_from_binary(),
239-
map_generator_to_map(),
240-
map_generator_to_list(),
241-
map_generator_to_binary(),
237+
otp26_maps(),
242238
throw_applied(),
243239
try_side({1, 1}).
244240

241+
-if(?OTP_RELEASE > 25).
242+
otp26_maps() ->
243+
map_comprehension_from_list(),
244+
map_comprehension_from_binary(),
245+
map_generator_to_map(),
246+
map_generator_to_list(),
247+
map_generator_to_binary().
248+
-else.
249+
otp26_maps() ->
250+
ok.
251+
-endif.
252+
245253
-record(rec, {first= "1", second, third = initial}).
246254
create_record() ->
247255
#rec{third = application:get_env(kernel, missing, 3), first = "1"}.

0 commit comments

Comments
 (0)