Skip to content

Commit

Permalink
Silence compiler warnings for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davisp committed Jun 30, 2020
1 parent 1df5ac5 commit 685f14e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ notifications:
email: [email protected]
script: make check
otp_release:
- 23.0
- 22.2.4
- 21.3.8.1
- 20.3.8.22
Expand Down
2 changes: 1 addition & 1 deletion test/jiffy_17_copy_strings_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ check_binaries(Values) when is_list(Values) ->
check_binaries(Bin) when is_binary(Bin) ->
io:format("~s :: ~p ~p", [Bin, byte_size(Bin), binary:referenced_byte_size(Bin)]),
byte_size(Bin) == binary:referenced_byte_size(Bin);
check_binaries(Bin) ->
check_binaries(_Bin) ->
true.


Expand Down
3 changes: 3 additions & 0 deletions test/jiffy_util.hrl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
% This file is part of Jiffy released under the MIT license.
% See the LICENSE file for more information.

-compile(export_all).
-compile(nowarn_export_all).

msg(Fmt, Args) ->
M1 = io_lib:format(Fmt, Args),
M2 = re:replace(M1, <<"\r">>, <<"\\\\r">>, [global]),
Expand Down

0 comments on commit 685f14e

Please sign in to comment.