Improved test assertion message

This commit is contained in:
Simon Giesecke 2018-12-16 17:51:55 +01:00 committed by Simon Giesecke
parent 00f4bd05be
commit affe77280c

View File

@ -238,7 +238,9 @@ void internal_manage_test_sockets (void *socket_, bool add_)
test_sockets[i] = test_sockets[i + 1];
}
}
TEST_ASSERT_TRUE (found);
TEST_ASSERT_TRUE_MESSAGE (found,
"Attempted to close a socket that was "
"not created by test_context_socket");
--test_socket_count;
}
}