Re: [U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run
On 28 January 2016 at 20:46, Simon Glass wrote: > On 27 January 2016 at 23:57, Stephen Warren wrote: >> From: Stephen Warren >> >> The ut command prints a test failure count each time it is executed. >> This is stored in a global variable which is never reset. Consequently, >> the printed failure count accumulates across runs. Fix this by clearing >> the counter each time "ut" is invoked. >> >> Signed-off-by: Stephen Warren >> --- >> test/dm/test-main.c | 2 ++ >> 1 file changed, 2 insertions(+) > > Acked-by: Simon Glass Applied to u-boot-dm, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run
On 27 January 2016 at 23:57, Stephen Warren wrote: > From: Stephen Warren > > The ut command prints a test failure count each time it is executed. > This is stored in a global variable which is never reset. Consequently, > the printed failure count accumulates across runs. Fix this by clearing > the counter each time "ut" is invoked. > > Signed-off-by: Stephen Warren > --- > test/dm/test-main.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 1/9] test/dm: clear unit test failure count each run
From: Stephen Warren The ut command prints a test failure count each time it is executed. This is stored in a global variable which is never reset. Consequently, the printed failure count accumulates across runs. Fix this by clearing the counter each time "ut" is invoked. Signed-off-by: Stephen Warren --- test/dm/test-main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/test-main.c b/test/dm/test-main.c index 91bdda83ab36..f2e004814387 100644 --- a/test/dm/test-main.c +++ b/test/dm/test-main.c @@ -81,6 +81,8 @@ static int dm_test_main(const char *test_name) struct unit_test *test; int run_count; + uts->fail_count = 0; + /* * If we have no device tree, or it only has a root node, then these * tests clearly aren't going to work... -- 2.7.0 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot