diff options
author | deva <deva> | 2009-07-24 16:09:50 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-24 16:09:50 +0000 |
commit | e8fee46491ce35bcd239a0a42bfc3482bff94309 (patch) | |
tree | 90fa841dea6d559b45e25839e33a3c567a9667f3 /server/src/queryhandlerpentominos.cc | |
parent | 2d39b7295c9f5076c80d6928aee5e18f9069d03d (diff) |
Test for configuration to use pentominos.
Diffstat (limited to 'server/src/queryhandlerpentominos.cc')
-rw-r--r-- | server/src/queryhandlerpentominos.cc | 7 |
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) { |