From 12174f682dd7bd08ce19be3a60a299baafbc3086 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 15 Jan 2010 10:53:37 +0000 Subject: Updated environment test. --- server/src/environment.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'server/src') diff --git a/server/src/environment.cc b/server/src/environment.cc index 1cdfaba..35d9ad4 100644 --- a/server/src/environment.cc +++ b/server/src/environment.cc @@ -56,9 +56,9 @@ Environment::~Environment() */ #ifdef TEST_ENVIRONMENT -//deps: configuration.cc database.cc artefact.cc pracrodao.cc session.cc mutex.cc semaphore.cc debug.cc pracrodaotest.cc pracrodaopgsql.cc journalwriter.cc journal_commit.cc -//cflags: -I.. $(PQXX_CXXFLAGS) -//libs: $(PQXX_LIBS) -lpthread +//deps: configuration.cc database.cc artefact.cc pracrodao.cc session.cc mutex.cc semaphore.cc debug.cc pracrodaotest.cc pracrodaopgsql.cc journalwriter.cc journal_commit.cc entitylist.cc inotify.cc exception.cc versionstr.cc tcpsocket.cc macrolist.cc templatelist.cc saxparser.cc log.cc macroheaderparser.cc templateheaderparser.cc +//cflags: -I.. $(PQXX_CXXFLAGS) +//libs: $(PQXX_LIBS) -lpthread -lexpat #include "test.h" TEST_BEGIN; @@ -68,9 +68,7 @@ Conf::database_poolsize = 1; Conf::artefact_poolsize = 1; -Environment env; - -// TODO: Put some testcode here (see test.h for usable macros). +TEST_NOEXCEPTION(Environment env, "Check if the Enviroment can be created."); TEST_END; -- cgit v1.2.3