Skip to content

Commit 4bb9d46

Browse files
johnstultz-workshuahkh
authored andcommitted
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 <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Benjamin Gaignard <[email protected]> Cc: Brian Starkey <[email protected]> Cc: Laura Abbott <[email protected]> Cc: "Andrew F. Davis" <[email protected]> Cc: [email protected] Signed-off-by: John Stultz <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 0e698df commit 4bb9d46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ static int test_alloc_errors(char *heap_name)
351351
}
352352

353353
printf("Expected error checking passed\n");
354+
ret = 0;
354355
out:
355356
if (dmabuf_fd >= 0)
356357
close(dmabuf_fd);

0 commit comments

Comments
 (0)