diff options
author | John Stultz <john.stultz@linaro.org> | 2020-05-08 07:56:10 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-05-08 18:40:58 +0300 |
commit | 4bb9d46d47b105a774f9dca642f5271375bca4b2 (patch) | |
tree | df2992895c661fbc43baa42fcf960cb05360d44a /tools | |
parent | 0e698dfa282211e414076f9dc7e83c1c288314fd (diff) | |
download | linux-4bb9d46d47b105a774f9dca642f5271375bca4b2.tar.xz |
kselftests: dmabuf-heaps: Fix confused return value on expected error testing
When I added the expected error testing, I forgot I need to set
the return to zero when we successfully see an error.
Without this change we only end up testing a single heap
before the test quits.
Cc: Shuah Khan <shuah@kernel.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Brian Starkey <brian.starkey@arm.com>
Cc: Laura Abbott <labbott@redhat.com>
Cc: "Andrew F. Davis" <afd@ti.com>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c index cd5e1f602ac9..909da9cdda97 100644 --- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c @@ -351,6 +351,7 @@ static int test_alloc_errors(char *heap_name) } printf("Expected error checking passed\n"); + ret = 0; out: if (dmabuf_fd >= 0) close(dmabuf_fd); |