summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/queryhandlerpentominos.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/src/queryhandlerpentominos.cc b/server/src/queryhandlerpentominos.cc
index ffa0946..9e82241 100644
--- a/server/src/queryhandlerpentominos.cc
+++ b/server/src/queryhandlerpentominos.cc
@@ -232,7 +232,12 @@ QueryResult QueryHandlerPentominos::exec(Query &query)
int main()
{
- TCPSocket s;
+#ifdef WITHOUT_PENTOMINOS
+ printf("The project need to be configured for use of Pentominos in order to run this test.\n");
+ return 1;
+#endif/*WITHOUT_PENTOMINOS*/
+
+ TCPSocket s;
try {
s.connect("localhost", 11108);
} catch(Exception &e) {