Attempting to release the RX buffer twice is an error.
Bug: 132421502
Bug: 146208457
Change-Id: I714d46db326172bf914378224edce7464d7f22d9
diff --git a/test/linux/hftest_socket.c b/test/linux/hftest_socket.c
index a07e188..b25691f 100644
--- a/test/linux/hftest_socket.c
+++ b/test/linux/hftest_socket.c
@@ -25,6 +25,7 @@
#include "vmapi/hf/transport.h"
#include "test/hftest.h"
+#include "test/vmapi/spci.h"
alignas(4096) uint8_t kstack[4096];
@@ -68,7 +69,7 @@
/* Set up the mailbox. */
spci_rxtx_map(send_addr, recv_addr);
- EXPECT_EQ(spci_rx_release().func, SPCI_SUCCESS_32);
+ EXPECT_SPCI_ERROR(spci_rx_release(), SPCI_DENIED);
/* Clean the context. */
ctx = hftest_get_context();