THRIFT-3378 c_glib service does not handle negative Thrift byte values correctly
This closes #644
diff --git a/test/c_glib/src/test_client.c b/test/c_glib/src/test_client.c
index fd429c8..0f8a713 100644
--- a/test/c_glib/src/test_client.c
+++ b/test/c_glib/src/test_client.c
@@ -356,6 +356,22 @@
fail_count++;
}
+ printf ("testByte(-1)");
+ if (t_test_thrift_test_if_test_byte (test_client,
+ &byte,
+ -1,
+ &error)) {
+ printf (" = %d\n", byte);
+ if (byte != -1)
+ fail_count++;
+ }
+ else {
+ printf ("%s\n", error->message);
+ g_error_free (error);
+ error = NULL;
+
+ fail_count++;
+ }
/**
* I32 TEST