summaryrefslogtreecommitdiff
path: root/ACE/tests/Service_Config_Stream_DLL.cpp
diff options
context:
space:
mode:
authorcbeaulac <cbeaulac@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-04-17 13:39:43 +0000
committercbeaulac <cbeaulac@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-04-17 13:39:43 +0000
commit5a2d9ed37e1df43387f8b0d87183c9d30a98b18a (patch)
treea71979654cc2c781d309b9f9512ec241c57f7502 /ACE/tests/Service_Config_Stream_DLL.cpp
parentb57df7f3ab3648a16301bc6bbae87719adcc1fab (diff)
downloadATCD-5a2d9ed37e1df43387f8b0d87183c9d30a98b18a.tar.gz
Sun Apr 17 13:30:23 UTC 2011 Chad Beaulac <chad@objectivesolutions.com>
* ace/Stream.cpp ACE_Stream::remove(module) always calls close on the Module now. It use to only call close when the flags was M_DELETE_NONE. * tests/Bug_3912_Regression_Test.conf * tests/Bug_3912_Regression_Test.cpp Tests that close is called on an ACE_Task that's the reader in a Module that's removed from the Stream. * tests/Service_Config_Stream_DLL.cpp Added make_close factory method for a new Module. * tests/Bug_3334_Regression_Test.cpp Initialized status variable to zero. * tests/run_test.lst * tests/tests.mpc Added new test.
Diffstat (limited to 'ACE/tests/Service_Config_Stream_DLL.cpp')
-rw-r--r--ACE/tests/Service_Config_Stream_DLL.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/tests/Service_Config_Stream_DLL.cpp b/ACE/tests/Service_Config_Stream_DLL.cpp
index 8eddf568d98..7dc8b541fce 100644
--- a/ACE/tests/Service_Config_Stream_DLL.cpp
+++ b/ACE/tests/Service_Config_Stream_DLL.cpp
@@ -54,6 +54,7 @@ extern "C" Service_Config_Stream_DLL_Export MT_Stream *make_stream (void);
extern "C" Service_Config_Stream_DLL_Export MT_Module *make_da (void);
extern "C" Service_Config_Stream_DLL_Export MT_Module *make_ea (void);
extern "C" Service_Config_Stream_DLL_Export MT_Module *make_mr (void);
+extern "C" Service_Config_Stream_DLL_Export MT_Module *make_close (void);
MT_Stream *
make_stream (void)
@@ -82,6 +83,13 @@ make_mr (void)
new Test_Task, new Test_Task);
}
+MT_Module *
+make_close (void)
+{
+ return new MT_Module (ACE_TEXT ("Close_Test_Module"),
+ new Test_Task, new Test_Task);
+}
+
// Task to verify the order and operation of the stream assembly
// Command line args give the stream name (to look it up) and the names