summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-03-23 23:39:23 +0000
committerSteve Huston <shuston@riverace.com>2004-03-23 23:39:23 +0000
commit4c2e34b9b468431d0bbc01129f970524a5b8c5a9 (patch)
tree97dbe9bb80685acb100404164a92577acf6459ed /tests
parent37a58a5c042524dbc053a1a3ce30f75b0afebc17 (diff)
downloadATCD-4c2e34b9b468431d0bbc01129f970524a5b8c5a9.tar.gz
ChangeLogTag:Tue Mar 23 18:31:40 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/SSL/Makefile4
-rw-r--r--tests/SSL/aix_hack_for_main.cpp32
2 files changed, 35 insertions, 1 deletions
diff --git a/tests/SSL/Makefile b/tests/SSL/Makefile
index 341d4cf2321..e52376e3c75 100644
--- a/tests/SSL/Makefile
+++ b/tests/SSL/Makefile
@@ -9,7 +9,9 @@
# Local macros
#----------------------------------------------------------------------------
-BIN = Thread_Pool_Reactor_SSL_Test
+BIN = \
+ aix_hack_for_main \
+ Thread_Pool_Reactor_SSL_Test
PSRC=$(addsuffix .cpp,$(BIN))
LDLIBS = -lACE_SSL -lssl -lcrypto -lTest_Output
diff --git a/tests/SSL/aix_hack_for_main.cpp b/tests/SSL/aix_hack_for_main.cpp
new file mode 100644
index 00000000000..1f962c360af
--- /dev/null
+++ b/tests/SSL/aix_hack_for_main.cpp
@@ -0,0 +1,32 @@
+// $Id$
+
+//=============================================================================
+/**
+ * @file aix_hack_for_main.cpp
+ *
+ * $Id$
+ *
+ * This file is simply to force the Makefile to compile Main.cpp
+ * before it's needed in a test program that requires templates.
+ * Why is this needed? Because AIX Visual Age C++ has a template
+ * instantiation mechanism unlike any other in the way it remembers
+ * where templates are needed. We've previously worked around this
+ * by forcibly deleting the tempinc directory before compiling each
+ * test's source file. This worked because every test was in one file.
+ * When Main.cpp was added, this broke the scheme. This file simply
+ * gets Main.cpp to compile, then the resulting Main.o can be reused
+ * for each test, and it's again safe to delete the tempinc directory
+ * before each test compile.
+ * Hopefully, MPC will save us from this wretchedness...
+ *
+ * @author Steve Huston <shuston@riverace.com>
+ */
+//=============================================================================
+
+#include "test_config.h"
+
+int
+run_main (int, ACE_TCHAR *[])
+{
+ return 0;
+}