projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove std::out msg
[metaproxy-moved-to-github.git]
/
src
/
test_filter_factory.cpp
diff --git
a/src/test_filter_factory.cpp
b/src/test_filter_factory.cpp
index
b9190e3
..
81012d4
100644
(file)
--- a/
src/test_filter_factory.cpp
+++ b/
src/test_filter_factory.cpp
@@
-1,4
+1,4
@@
-/* $Id: test_filter_factory.cpp,v 1.7 2005-12-10 09:59:10 adam Exp $
+/* $Id: test_filter_factory.cpp,v 1.10 2006-01-04 14:30:51 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-11,7
+11,7
@@
#include "config.hpp"
#include "filter.hpp"
#include "package.hpp"
#include "config.hpp"
#include "filter.hpp"
#include "package.hpp"
-#include "filter_factory.hpp"
+#include "factory_filter.hpp"
#define BOOST_AUTO_TEST_MAIN
#define BOOST_AUTO_TEST_MAIN
@@
-53,7
+53,7
@@
BOOST_AUTO_UNIT_TEST( test_filter_factory_1 )
{
try {
{
try {
- yp2::FilterFactory ffactory;
+ yp2::FactoryFilter ffactory;
XFilter xf;
YFilter yf;
XFilter xf;
YFilter yf;
@@
-87,16
+87,21
@@
BOOST_AUTO_UNIT_TEST( test_filter_factory_1 )
}
}
}
}
+#if HAVE_DL_SUPPORT
#if HAVE_DLFCN_H
BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
{
try {
#if HAVE_DLFCN_H
BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
{
try {
- yp2::FilterFactory ffactory;
+ yp2::FactoryFilter ffactory;
const std::string id = "dl";
const std::string id = "dl";
+ // first load
BOOST_CHECK(ffactory.add_creator_dyn(id, ".libs"));
BOOST_CHECK(ffactory.add_creator_dyn(id, ".libs"));
-
+
+ // test double load
+ BOOST_CHECK(ffactory.add_creator_dyn(id, ".libs"));
+
yp2::filter::Base* filter = 0;
filter = ffactory.create(id);
yp2::filter::Base* filter = 0;
filter = ffactory.create(id);
@@
-112,6
+117,7
@@
BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
}
}
#endif
}
}
#endif
+#endif
/*
* Local variables:
/*
* Local variables: