diff options
author | Lukas Larsson <[email protected]> | 2011-02-09 14:01:39 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-02-17 16:59:39 +0100 |
commit | ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7 (patch) | |
tree | 026e7d50511f663cbfa301b746e80672d51d715e /lib/common_test/test/ct_suite_callback_SUITE_data/scb | |
parent | e34cd721545915266a00b1ec55a9a5867c8459a4 (diff) | |
download | otp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.tar.gz otp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.tar.bz2 otp-ff8d3f0f39b0d1347cd94e1d0d3ab422ad7b06d7.zip |
Fix bug where the state of an SCB was altered when no on_tc_* existed
Diffstat (limited to 'lib/common_test/test/ct_suite_callback_SUITE_data/scb')
-rw-r--r-- | lib/common_test/test/ct_suite_callback_SUITE_data/scb/tests/minimal_terminate_scb.erl | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_suite_callback_SUITE_data/scb/tests/minimal_terminate_scb.erl b/lib/common_test/test/ct_suite_callback_SUITE_data/scb/tests/minimal_terminate_scb.erl new file mode 100644 index 0000000000..3f76d2f47d --- /dev/null +++ b/lib/common_test/test/ct_suite_callback_SUITE_data/scb/tests/minimal_terminate_scb.erl @@ -0,0 +1,38 @@ +%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2010. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+
+
+-module(minimal_terminate_scb).
+
+
+-include_lib("common_test/src/ct_util.hrl").
+-include_lib("common_test/include/ct_event.hrl").
+
+
+%% Suite Callbacks
+-export([init/2]).
+-export([terminate/1]).
+
+init(Id, Opts) ->
+ empty_scb:init(Id, Opts).
+
+terminate(State) ->
+ empty_scb:terminate(State).
+
+
|