aboutsummaryrefslogtreecommitdiff
path: root/tests/run_inference_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_inference_test.cpp')
-rw-r--r--tests/run_inference_test.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/run_inference_test.cpp b/tests/run_inference_test.cpp
index 88fc691..5e529e6 100644
--- a/tests/run_inference_test.cpp
+++ b/tests/run_inference_test.cpp
@@ -130,8 +130,7 @@ void testNetworkInfoUnparsableBuffer(const Device &device) {
}
void testNetworkInvalidType(const Device &device) {
- const std::string expected_error =
- std::string("IOCTL cmd=") + std::to_string(ETHOSU_IOCTL_NETWORK_CREATE) + " failed: " + std::strerror(EINVAL);
+ const std::string expected_error = std::string("IOCTL cmd=NETWORK_CREATE") + " failed: " + std::strerror(EINVAL);
struct ethosu_uapi_network_create net_req = {};
net_req.type = ETHOSU_UAPI_NETWORK_INDEX + 1;
try {
@@ -144,8 +143,7 @@ void testNetworkInvalidType(const Device &device) {
}
void testNetworkInvalidDataPtr(const Device &device) {
- const std::string expected_error =
- std::string("IOCTL cmd=") + std::to_string(ETHOSU_IOCTL_NETWORK_CREATE) + " failed: " + std::strerror(EINVAL);
+ const std::string expected_error = std::string("IOCTL cmd=NETWORK_CREATE") + " failed: " + std::strerror(EINVAL);
struct ethosu_uapi_network_create net_req = {};
net_req.type = ETHOSU_UAPI_NETWORK_USER_BUFFER;
net_req.network.data_ptr = 0U;
@@ -160,8 +158,7 @@ void testNetworkInvalidDataPtr(const Device &device) {
}
void testNetworkInvalidDataSize(const Device &device) {
- const std::string expected_error =
- std::string("IOCTL cmd=") + std::to_string(ETHOSU_IOCTL_NETWORK_CREATE) + " failed: " + std::strerror(EINVAL);
+ const std::string expected_error = std::string("IOCTL cmd=NETWORK_CREATE") + " failed: " + std::strerror(EINVAL);
struct ethosu_uapi_network_create net_req = {};
net_req.type = ETHOSU_UAPI_NETWORK_USER_BUFFER;
net_req.network.data_ptr = reinterpret_cast<uintptr_t>(networkModelData);