aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-01-10 09:37:43 +0100
committerHans Bolinder <[email protected]>2018-01-10 09:37:43 +0100
commit3c333686c80b84541e4971b9eb9c97a6eb57ecf9 (patch)
tree1548ba4b44b392fe1da4157cfa9f7446abe58b1d /lib/dialyzer
parent6e8a91b5d3a47e4f1b5be4ce1b213f0175b23062 (diff)
parent50c99a1a07feed6f160a700c5f39becc10f04802 (diff)
downloadotp-3c333686c80b84541e4971b9eb9c97a6eb57ecf9.tar.gz
otp-3c333686c80b84541e4971b9eb9c97a6eb57ecf9.tar.bz2
otp-3c333686c80b84541e4971b9eb9c97a6eb57ecf9.zip
Merge branch 'hasse/stdlib/incomplete_erl_tar_function_spec/OTP-14860/PR-1670' into maint
* hasse/stdlib/incomplete_erl_tar_function_spec/OTP-14860/PR-1670: dialyzer: Add a test of erl_tar:table/1,2 Fix false Dialyzer warnings for erl_tar:table/1
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl b/lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl
new file mode 100644
index 0000000000..2dc00d272a
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl
@@ -0,0 +1,14 @@
+-module(erl_tar_table).
+
+%% OTP-14860, PR 1670.
+
+-export([t/0, v/0, x/0]).
+
+t() ->
+ {ok, ["file"]} = erl_tar:table("table.tar").
+
+v() ->
+ {ok, [{_,_,_,_,_,_,_}]} = erl_tar:table("table.tar", [verbose]).
+
+x() ->
+ {ok, ["file"]} = erl_tar:table("table.tar", []).