You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2016/01/17 20:30:06 UTC
thrift git commit: THRIFT-3558 fix typos in c_glib test assertions
Repository: thrift
Updated Branches:
refs/heads/master 8b5e2e7c8 -> 8b0fe287a
THRIFT-3558 fix typos in c_glib test assertions
This closes #796
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8b0fe287
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8b0fe287
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8b0fe287
Branch: refs/heads/master
Commit: 8b0fe287a684415678edab4caeeff291adad81a8
Parents: 8b5e2e7
Author: Chandler May <cj...@gmail.com>
Authored: Sat Jan 16 15:10:34 2016 -0500
Committer: Roger Meier <ro...@apache.org>
Committed: Sun Jan 17 20:29:00 2016 +0100
----------------------------------------------------------------------
lib/c_glib/test/testbinaryprotocol.c | 10 +++++-----
lib/c_glib/test/testoptionalrequired.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/8b0fe287/lib/c_glib/test/testbinaryprotocol.c
----------------------------------------------------------------------
diff --git a/lib/c_glib/test/testbinaryprotocol.c b/lib/c_glib/test/testbinaryprotocol.c
index 96b2019..349460a 100755
--- a/lib/c_glib/test/testbinaryprotocol.c
+++ b/lib/c_glib/test/testbinaryprotocol.c
@@ -432,11 +432,11 @@ thrift_server_primitives (const int port)
&len, NULL) > 0);
assert (value_boolean == TEST_BOOL);
- assert (value_byte = TEST_BYTE);
- assert (value_16 = TEST_I16);
- assert (value_32 = TEST_I32);
- assert (value_64 = TEST_I64);
- assert (value_double = TEST_DOUBLE);
+ assert (value_byte == TEST_BYTE);
+ assert (value_16 == TEST_I16);
+ assert (value_32 == TEST_I32);
+ assert (value_64 == TEST_I64);
+ assert (value_double == TEST_DOUBLE);
assert (strcmp (TEST_STRING, string) == 0);
assert (memcmp (comparator, binary, len) == 0);
http://git-wip-us.apache.org/repos/asf/thrift/blob/8b0fe287/lib/c_glib/test/testoptionalrequired.c
----------------------------------------------------------------------
diff --git a/lib/c_glib/test/testoptionalrequired.c b/lib/c_glib/test/testoptionalrequired.c
index 60d8afd..818343c 100755
--- a/lib/c_glib/test/testoptionalrequired.c
+++ b/lib/c_glib/test/testoptionalrequired.c
@@ -79,7 +79,7 @@ test_simple (void)
assert (s1->__isset_im_default == FALSE);
assert (s1->__isset_im_optional == FALSE);
write_to_read (THRIFT_STRUCT (s1), THRIFT_STRUCT (s2), NULL, NULL);
- assert (s2->__isset_im_default = TRUE);
+ assert (s2->__isset_im_default == TRUE);
assert (s2->__isset_im_optional == FALSE);
assert (s2->im_optional == 0);