diff mbox series

[rt-tests,v3,16/33] cyclictest: Record start of test execution

Message ID 20210320183829.1318-17-dwagner@suse.de
State New
Headers show
Series JSON cleanups and more tests updated | expand

Commit Message

Daniel Wagner March 20, 2021, 6:38 p.m. UTC
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
 src/cyclictest/cyclictest.c | 1 +
 1 file changed, 1 insertion(+)

Comments

John Kacur May 7, 2021, 4:41 p.m. UTC | #1
On Sat, 20 Mar 2021, Daniel Wagner wrote:

> Use rt_test_start() to record a timestamp when the test starts.

> 

> Signed-off-by: Daniel Wagner <dwagner@suse.de>

> ---

>  src/cyclictest/cyclictest.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c

> index 3f3b91bab53b..033b95a3a19a 100644

> --- a/src/cyclictest/cyclictest.c

> +++ b/src/cyclictest/cyclictest.c

> @@ -615,6 +615,7 @@ static void *timerthread(void *param)

>  		setitimer(ITIMER_REAL, &itimer, NULL);

>  	}

>  

> +	rt_test_start();

>  	stat->threadstarted++;

>  

>  	while (!shutdown) {

> -- 

> 2.30.2

> 

> 

Signed-off-by: John Kacaur <jkacur@redhat.com>
diff mbox series

Patch

diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 3f3b91bab53b..033b95a3a19a 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -615,6 +615,7 @@  static void *timerthread(void *param)
 		setitimer(ITIMER_REAL, &itimer, NULL);
 	}
 
+	rt_test_start();
 	stat->threadstarted++;
 
 	while (!shutdown) {