| commit | f8dfbb82b6f6cbdc1cd53490dd0ad96b74ab653c | [log] [tgz] |
|---|---|---|
| author | Jayanth Othayoth <ojayanth@gmail.com> | Tue Oct 07 07:55:17 2025 -0500 |
| committer | Jayanth Othayoth <ojayanth@gmail.com> | Tue Oct 07 08:09:54 2025 -0500 |
| tree | ad841497c576f158f01e9ddf9f2dd6ac3011ab7f | |
| parent | 6975122d3a63ed710ae1a871dca8268c8bea3338 [diff] |
test: replace MOCK_CONST_METHOD with MOCK_METHOD
Replaced deprecated MOCK_CONST_METHOD macros with modern MOCK_METHOD
to resolve below build failures.
'''
src/gpioplus/test/handle.hpp:15:5: error: There is an unknown macro here somewhere.
Configuration is required. If GMOCK_PP_CAT is a macro then please configure it. [unknownMacro]
MOCK_CONST_METHOD1(getValues, void(std::vector<uint8_t>&));
src/gpioplus/test/sys.hpp:14:5: error: There is an unknown macro here somewhere.
Configuration is required. If GMOCK_PP_CAT is a macro then please configure it. [unknownMacro]
MOCK_CONST_METHOD2(open, int(const char*, int));
'''
Change-Id: Ib8c0af210ec8477eebd849f658aeca43ea67c9fb
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
gpioplus is a c++ wrapper around the linux gpio ioctl interface. It aims to provide c++ ergonomics to the usage.
For a standard release build, you want something like:
meson setup -Dexamples=false -Dtests=disabled builddir ninja -C builddir ninja -C builddir install
For a test / debug build, a typical configuration is
meson setup -Dtests=enabled builddir meson test -C builddir