summaryrefslogtreecommitdiff
path: root/test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-12-18 22:04:44 -0500
committerFred Hebert <mononcqc@ferd.ca>2015-12-18 22:04:44 -0500
commitd201d7f4a6e6058c272fe75bb832dc78a418272f (patch)
tree0150b76c1b460e35f29ee98fdf43c8a0cfcbd748 /test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl
parent21ae3145dfd9f24af9df962fcbf00fdb55d9b923 (diff)
A bad template index does not crash; shows warning
This should fix #955 The test is implicit as a bad index previously silently crashed rebar3. By adding the bad index to the `new` suite's files, we can show that things keep running.
Diffstat (limited to 'test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl')
-rw-r--r--test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl b/test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl
new file mode 100644
index 0000000..83eb9a3
--- /dev/null
+++ b/test/rebar_new_SUITE_data/.rebar3/templates/bad_index/app.erl.dtl
@@ -0,0 +1,27 @@
+%%%-------------------------------------------------------------------
+%% @doc {{name}} public API
+%% @end
+%%%-------------------------------------------------------------------
+
+-module({{name}}_app).
+
+-behaviour(application).
+
+%% Application callbacks
+-export([start/2
+ ,stop/1]).
+
+%%====================================================================
+%% API
+%%====================================================================
+
+start(_StartType, _StartArgs) ->
+ {{name}}_sup:start_link().
+
+%%--------------------------------------------------------------------
+stop(_State) ->
+ ok.
+
+%%====================================================================
+%% Internal functions
+%%====================================================================