Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: connector: Fix input argument error paths to skip

Fix input argument parsing paths to skip from their error legs.
This fix helps to avoid false test failure reports without running
the test.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Anjali Kulkarni <anjali.k.kulkarni@oracle.com>
Link: https://lore.kernel.org/r/20230729002403.4278-1-skhan@linuxfoundation.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Shuah Khan and committed by
Jakub Kicinski
04786c06 079082c6

+2 -2
+2 -2
tools/testing/selftests/connector/proc_filter.c
··· 248 248 249 249 if (argc > 2) { 250 250 printf("Expected 0(assume no-filter) or 1 argument(-f)\n"); 251 - exit(1); 251 + exit(KSFT_SKIP); 252 252 } 253 253 254 254 if (argc == 2) { ··· 256 256 filter = 1; 257 257 } else { 258 258 printf("Valid option : -f (for filter feature)\n"); 259 - exit(1); 259 + exit(KSFT_SKIP); 260 260 } 261 261 } 262 262