[PATCH 2/3] testsuite: Mark empty tests as skipped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 testsuite/testsuite.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h
index f2a75e5..33f0a1e 100644
--- a/testsuite/testsuite.h
+++ b/testsuite/testsuite.h
@@ -147,7 +147,8 @@ int test_run(const struct test *t);
 								\
 			return test_run(t);			\
 		}						\
-								\
+		if (!tests[0])					\
+			exit(77);				\
 		for (i = 0; tests[i] != NULL; i++) {		\
 			if (test_run(tests[i]) != 0)		\
 				exit(EXIT_FAILURE);		\
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux