Commit Graph
92 Commits
Author SHA1 Message Date
lotodore 224dd3e6e6 Fixing test cases after pull request #166 (BSD fix). 2012-12-28 21:17:51 +01:00
Evgeni Golov 1bbe608f50 rename major/minor to majorVersion/minorVersion
PokerTH fails to build on Debian GNU/kFreeBSD and GNU/Hurd with:
 In file included from src/third_party/protobuf/pokerth.pb.cc:4:0:
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:936:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected unqualified-id before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:943:37: error: expected ')' before 'int'
 src/third_party/protobuf/pokerth.pb.h:9618:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.h:9640:60: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual void AnnounceMessage_Version::SerializeWithCachedSizes(google::protobuf::io::CodedOutputStream*) const':
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1581:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1586:72: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'virtual int AnnounceMessage_Version::ByteSize() const':
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1599:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1606:17: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: In member function 'void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version&)':
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1625:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected unqualified-id before '(' token
 src/third_party/protobuf/pokerth.pb.cc:1628:22: error: expected primary-expression before ')' token
 src/third_party/protobuf/pokerth.pb.cc: At global scope:
 src/third_party/protobuf/pokerth.pb.cc:14319:6: warning: unused parameter 'output' [-Wunused-parameter]
 src/third_party/protobuf/pokerth.pb.cc:18344:6: warning: unused parameter 'output' [-Wunused-parameter]
 make[2]: *** [obj/pokerth.pb.o] Error 1

Renaming the vars to majorVersion/minorVersion fixes this issue.

The problem on kFreeBSD is, that
 /usr/include/sys/kern/types.h
has
 #define major(x)        ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
 #define minor(x)        ((int)((x)&0xffff00ff))         /* minor number */
and this is included somewhere when you include stdlib.h, which protobuf's
headers do.

Hurd has similar definitions in /usr/include/i386-gnu/sys/sysmacros.h.
2012-12-28 12:14:54 +01:00
doitux fe7f34a504 sdlplayer bugfix 2012-12-20 09:41:39 +01:00
lotodore 02016381ef Multiple player info requests can be placed in one packet. 2012-09-24 12:22:13 +02:00
lotodore f0ee0af6ec Some work on protocol buffer details. 2012-09-23 23:19:53 +02:00
lotodore 5ef456e15b Fixing remaining test cases for google protocol buffers. 2012-09-22 12:39:34 +02:00
lotodore 09545d86a7 Still fixing tests. 2012-09-21 23:53:25 +02:00
lotodore 8080fb6139 More work on tests. 2012-09-21 13:00:24 +02:00
lotodore 59ef7ea62a More work on tests. 2012-09-20 23:39:25 +02:00
lotodore c752b17c9f In the process of fixing the Java test cases for google protocol buffers. 2012-09-20 20:55:21 +02:00
lotodore a8fe40a49a Updating protocol version in test case. 2012-04-09 16:38:43 +00:00
lotodore d1b6a4deec Fixing rejected chat and corresponding test case. 2012-01-08 16:56:51 +00:00
lotodore 63f5aadf40 Preparing release 0.9. 2012-01-03 23:26:58 +00:00
lotodore 6a3ffc1f29 Consider seat position in seat state test. 2012-01-01 13:47:53 +00:00
lotodore 672d202697 Adding new seat state test case. 2012-01-01 12:04:25 +00:00
lotodore ae7a177d72 Improving test cases for rejoin. 2012-01-01 10:36:49 +00:00
lotodore a285683e71 Timeout message may occur during test case. 2011-12-27 21:16:50 +00:00
lotodore 6bab9e8e00 Incrementing protocol version for tests. 2011-12-23 22:45:43 +00:00
lotodore f8c1cdf56e Inform players when another player is no longer allowed to rejoin. 2011-12-22 20:10:18 +00:00
lotodore 38d224590a Send state of seats at the beginning of each hand. 2011-12-21 20:56:41 +00:00
lotodore 99616b4eed Send player state with each player action. autofold/disconnect timeout now depends on player action timeout. 2011-12-17 23:34:34 +00:00
lotodore 641becb654 Fixing protocol version number. 2011-11-13 19:49:26 +00:00
lotodore c6b4e7cfdc Fixing test cases. 2011-11-13 19:34:47 +00:00
lotodore d975139409 Preparing release 0.9-beta1. Fixing issue that player was not marked as kicked when kicked through the chat cleaner. Fixing java test cases. 2011-11-13 19:10:07 +00:00
lotodore 23b247c90f Trying to fix test case. 2011-10-29 18:26:32 +00:00
lotodore 05dd9980ca Trying to fix test case. 2011-10-29 18:09:28 +00:00
lotodore 63a6441908 Adding test case for multiple rejoins. 2011-10-29 17:50:03 +00:00
lotodore 01047622c2 Adding test case for rejoin. 2011-10-29 12:54:53 +00:00
lotodore d00bd96511 Fixing test cases. 2011-10-27 19:20:08 +00:00
lotodore 0d9bf08934 Still trying to fix the test cases. 2011-10-03 16:07:41 +00:00
lotodore 1e1de466b8 Fixing test cases. 2011-10-03 13:21:58 +00:00
lotodore b5b698ce44 Considering protocol changes in tests. 2011-10-03 12:44:57 +00:00
lotodore 8e31b459d6 Updating test protocol file. 2011-07-17 14:33:52 +00:00
lotodore 77f7287851 Updating protocol files for tests. 2011-07-17 14:16:13 +00:00
lotodore d14d1d4a2b Regenerating protocol files for tests. 2011-07-17 12:19:54 +00:00
lotodore ecc59dfee3 Support running the test system on Windows 7. 2011-06-12 18:41:48 +00:00
lotodore 5ab043d533 Remove invalid comment. 2011-03-10 17:39:22 +00:00
lotodore f4a49f0ed4 Verifying proper encryption of cards for registered users. 2011-03-10 16:37:27 +00:00
lotodore 8b4ed277ad Modifying test cases so that it is checked whether the game winner money is the sum of all start money. 2011-03-08 22:49:48 +00:00
lotodore d826a19676 Adding load test. 2011-02-22 21:48:52 +00:00
lotodore 781d8a820e Adding test of the different methods to block a player from the server. 2011-02-19 23:50:01 +00:00
lotodore 8494a55b82 Adding test cases to list of tests. 2011-02-18 13:49:01 +00:00
lotodore e30591c600 Adding copyright notices (tests are AGPL3). 2011-02-18 13:48:30 +00:00
lotodore 0c09fbe40b Removing Java warnings. 2011-02-18 13:40:24 +00:00
lotodore 84be9c62a8 Polishing chat and adding test cases for different chat messages. 2011-02-18 13:39:22 +00:00
lotodore e5b9b29564 Adding chat reject message if chat is tried to be sent in an invalid state. Otherwise testing won't work. 2011-02-17 23:57:58 +00:00
lotodore 1840efb60f Add new test case for unsubscribing/resubscribing lobby messages. 2011-02-17 12:09:05 +00:00
lotodore 71cc99c6ef Fix warning. 2011-02-13 21:45:04 +00:00
lotodore 672b8390b9 Adding new test case for game list updates. 2011-02-13 21:09:34 +00:00
lotodore 0b38133337 Adding test case for the player list (in the lobby) and polishing other tests. 2011-02-13 18:48:46 +00:00