From 13ea8cf1ad73b2e16bba2e044afb56f7f7ab776c Mon Sep 17 00:00:00 2001 From: Le Chi Thu Date: Wed, 4 Apr 2012 12:14:46 +0200 Subject: Print unique test id for dma test cases --- kernel/testcases/dma/user-space/dma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/testcases/dma/user-space/dma.c b/kernel/testcases/dma/user-space/dma.c index f3dd062..97b8572 100644 --- a/kernel/testcases/dma/user-space/dma.c +++ b/kernel/testcases/dma/user-space/dma.c @@ -107,6 +107,7 @@ int main(int argc, char **argv) int lc; /* loop counter */ char *msg; /* message returned from parse_opts */ + int count; /* test case loop counter */ /*************************************************************** * parse standard options @@ -130,12 +131,15 @@ int main(int argc, char **argv) ***************************************************************/ if (STD_FUNCTIONAL_TEST) { - for (Tst_count = 0; Tst_count < TST_TOTAL;) { + for (count = 0; count < TST_TOTAL; count++) { int num; num = TST_TOTAL == 1 ? testnum : test_cases[Tst_count]; + # tst_xxx will use Tst_count as test nr + Tst_count = num -1; + TEST(dma_test(num)); if (TEST_RETURN == 0) -- cgit v1.2.3