diff options
author | Le Chi Thu <thu2004@yahoo.se> | 2012-04-04 12:14:46 +0200 |
---|---|---|
committer | Le Chi Thu <thu2004@yahoo.se> | 2012-04-04 12:14:46 +0200 |
commit | 13ea8cf1ad73b2e16bba2e044afb56f7f7ab776c (patch) | |
tree | 618bf2b9b845f6b8915d5e8ec0669ec31a14ff44 | |
parent | 5905e541908187858fcb5885eee3d10974aa0889 (diff) |
Print unique test id for dma test cases
-rw-r--r-- | kernel/testcases/dma/user-space/dma.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) |