Re: [PATCH] samples/bpf: Fix test_maps/bpf_get_next_key() test

2015-01-23 Thread Michael Holzheu
On Thu, 22 Jan 2015 09:32:43 -0800 Alexei Starovoitov wrote: > On Thu, Jan 22, 2015 at 8:01 AM, Michael Holzheu > wrote: > > Looks like the "test_maps" test case expects to get the keys in > > the wrong order when iterating over the elements: > > > > test_maps: samples/bpf/test_maps.c:79: test_h

Re: [PATCH] samples/bpf: Fix test_maps/bpf_get_next_key() test

2015-01-22 Thread Alexei Starovoitov
On Thu, Jan 22, 2015 at 8:01 AM, Michael Holzheu wrote: > Looks like the "test_maps" test case expects to get the keys in > the wrong order when iterating over the elements: > > test_maps: samples/bpf/test_maps.c:79: test_hashmap_sanity: Assertion > `bpf_get_next_key(map_fd, &key, &next_key) == 0

[PATCH] samples/bpf: Fix test_maps/bpf_get_next_key() test

2015-01-22 Thread Michael Holzheu
Looks like the "test_maps" test case expects to get the keys in the wrong order when iterating over the elements: test_maps: samples/bpf/test_maps.c:79: test_hashmap_sanity: Assertion `bpf_get_next_key(map_fd, &key, &next_key) == 0 && next_key == 2' failed. Aborted Fix this and test for the corre