File 0837-stdlib_SUITE-Eliminate-export_all-directive.patch of Package erlang
From a54a8f033b366ba7f4ae7dac7af682f8180fafbb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Wed, 25 Sep 2019 13:04:05 +0200
Subject: [PATCH 2/4] stdlib_SUITE: Eliminate -export_all() directive
-export_all() is sloppy and can lead to unused functions that are
not noticed.
---
lib/stdlib/test/stdlib_SUITE.erl | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lib/stdlib/test/stdlib_SUITE.erl b/lib/stdlib/test/stdlib_SUITE.erl
index d55635a735..0b7510c305 100644
--- a/lib/stdlib/test/stdlib_SUITE.erl
+++ b/lib/stdlib/test/stdlib_SUITE.erl
@@ -22,12 +22,11 @@
%%%-----------------------------------------------------------------
-module(stdlib_SUITE).
-include_lib("common_test/include/ct.hrl").
+-export([all/0, suite/0, init_per_suite/1, end_per_suite/1,
+ init_per_group/2, end_per_group/2,
+ init_per_testcase/2, end_per_testcase/2,
+ app_test/1, appup_test/1, assert_test/1]).
--compile(export_all).
-
-%%
-%% all/1
-%%
suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
--
2.16.4