Skip to content

Commit

Permalink
fixup! tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Feb 21, 2016
1 parent f5b45ac commit 6d19fe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/netdev2_test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#define EXECUTE(test) \
if (!test()) { \
puts(#test " failed."); \
puts(# test " failed."); \
return 1; \
}

Expand All @@ -65,6 +65,7 @@ static int _dev_get_addr(netdev2_t *dev, void *value, size_t max_len);
int test_get_addr(void)
{
uint8_t tmp[sizeof(_dev_addr)];

if (gnrc_netapi_get(_mac_pid, NETOPT_ADDRESS, 0, tmp, sizeof(tmp)) != sizeof(_dev_addr)) {
puts("Error getting device address");
return 0;
Expand Down Expand Up @@ -281,6 +282,7 @@ static int _dev_recv(netdev2_t *dev, char *buf, int len)
static int _dev_send(netdev2_t *dev, const struct iovec *vector, int count)
{
int idx = 0;

(void)dev;
/* check packet content with expected data */
for (int i = 0; i < count; i++) {
Expand Down

0 comments on commit 6d19fe6

Please sign in to comment.