diff options
Diffstat (limited to 'test/ipmi_open_unittest.cpp')
-rw-r--r-- | test/ipmi_open_unittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ipmi_open_unittest.cpp b/test/ipmi_open_unittest.cpp index 9079df0..39ad426 100644 --- a/test/ipmi_open_unittest.cpp +++ b/test/ipmi_open_unittest.cpp @@ -31,7 +31,7 @@ TEST(BlobOpenTest, InvalidRequestLengthReturnsFailure) auto req = reinterpret_cast<struct BmcBlobOpenTx*>(request); std::string blobId = "abc"; - req->cmd = BlobOEMCommands::bmcBlobOpen; + req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobOpen); req->crc = 0; req->flags = 0; // length() doesn't include the nul-terminator. @@ -54,7 +54,7 @@ TEST(BlobOpenTest, RequestRejectedReturnsFailure) auto req = reinterpret_cast<struct BmcBlobOpenTx*>(request); std::string blobId = "a"; - req->cmd = BlobOEMCommands::bmcBlobOpen; + req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobOpen); req->crc = 0; req->flags = 0; // length() doesn't include the nul-terminator, request buff is initialized @@ -82,7 +82,7 @@ TEST(BlobOpenTest, BlobOpenReturnsOk) struct BmcBlobOpenRx rep; std::string blobId = "a"; - req->cmd = BlobOEMCommands::bmcBlobOpen; + req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobOpen); req->crc = 0; req->flags = 0; // length() doesn't include the nul-terminator, request buff is initialized |