Переглянути джерело

Silence compiler warnings for tests

pull/195/merge
Paul J. Davis 4 роки тому
джерело
коміт
685f14ef60
3 змінених файлів з 5 додано та 1 видалено
  1. +1
    -0
      .travis.yml
  2. +1
    -1
      test/jiffy_17_copy_strings_tests.erl
  3. +3
    -0
      test/jiffy_util.hrl

+ 1
- 0
.travis.yml Переглянути файл

@ -3,6 +3,7 @@ notifications:
email: paul.joseph.davis@gmail.com
script: make check
otp_release:
- 23.0
- 22.2.4
- 21.3.8.1
- 20.3.8.22

+ 1
- 1
test/jiffy_17_copy_strings_tests.erl Переглянути файл

@ -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.

+ 3
- 0
test/jiffy_util.hrl Переглянути файл

@ -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]),

Завантаження…
Відмінити
Зберегти