-/* $Id: test_filter_factory.cpp,v 1.7 2005-12-10 09:59:10 adam Exp $
+/* $Id: test_filter_factory.cpp,v 1.9 2006-01-04 11:55:32 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
}
}
+#if HAVE_DL_SUPPORT
#if HAVE_DLFCN_H
BOOST_AUTO_UNIT_TEST( test_filter_factory_2 )
{
const std::string id = "dl";
+ // first load
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);
}
}
#endif
+#endif
/*
* Local variables: