Mock generated code runs failed on ARM
When I test a software whose code is based on cmockery. The software is greenplum database. The genarated file is ~/src/gpdb$ vi src/test/unit/mock/backend/libpq/pqexpbuffer_mock.c
bool appendPQExpBufferVA(PQExpBuffer str, const char * fmt, va_list args) { check_expected(str); check_expected(fmt); check_expected(args); optional_assignment(fmt); return (bool) mock(); }
I exec 'make -s unittest-check' amd get error.
../../../../../src/test/unit/mock/backend/libpq/pqexpbuffer_mock.c: In function 'appendPQExpBufferVA':
../../../../../src/test/unit/mock/backend/libpq/pqexpbuffer_mock.c:110:2: error: aggregate value used where an integer was expected
check_expected(args);
^~~~~~~~~~~~~~
I run this test on both X86 and ARM machines. So I guess it might be different on these different ARCH.
Any idea to fix it? Thanks
Any people maintain this repo?
@mbrukman and I have been part time maintaining, happy to review a pull request.
Thanks sir, @stewartmiles . @mbrukman To be honest, I'm not sure I can fix it. Could you please give some suggests? Thanks very much