commit | 1322437500ae14e8fe83caf20843215bd108b216 | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Mon Jul 15 17:00:15 2024 +0000 |
committer | Willy Tu <wltu@google.com> | Tue Jul 16 22:49:37 2024 +0000 |
tree | 331ea2c82094c729e1776f4bbf8bc2b96dd87530 | |
parent | d942a65bbcb461ec041b4af6f58c3cc7a6f722a5 [diff] |
Add Mutex Guard around open in sendPackage The `fd` is current thread unsafe and could potentially be access/overridden by multiple thread. Add the mutex around the open() in sendPackage to make sure it is only called once. Tested: Added unit tests to make sure we are thread safe. Change-Id: I2801bace2c816ed3454c3f79b57609aa8f6ecc33 Signed-off-by: Willy Tu <wltu@google.com>
ipmi-blob-tool is a host-side tool that speaks the BLOB protocol over IPMI.
Test cases require google{test,mock}, valgrind, and lcov.
For a standard release build, you want something like:
./bootstrap.sh ./configure --disable-tests make make install
For a test / debug build, a typical configuration is
./bootstrap.sh ./configure --enable-tests --enable-coverage --enable-valgrind make make check make check-valgrind make check-code-coverage