Message ID | 20210320183829.1318-20-dwagner@suse.de |
---|---|
State | New |
Headers | show |
Series | JSON cleanups and more tests updated | expand |
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/ptsematest/ptsematest.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c > index a32bfc1698f0..471f1b307c14 100644 > --- a/src/ptsematest/ptsematest.c > +++ b/src/ptsematest/ptsematest.c > @@ -468,6 +468,7 @@ int main(int argc, char *argv[]) > maindelay.tv_sec = 0; > maindelay.tv_nsec = 50000000; /* 50 ms */ > > + rt_test_start(); > while (!shutdown) { > for (i = 0; i < num_threads; i++) > shutdown |= receiver[i].shutdown | sender[i].shutdown; > -- > 2.30.2 > > Signed-off-by: John Kacur <jkacur@redhat.com>
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c index a32bfc1698f0..471f1b307c14 100644 --- a/src/ptsematest/ptsematest.c +++ b/src/ptsematest/ptsematest.c @@ -468,6 +468,7 @@ int main(int argc, char *argv[]) maindelay.tv_sec = 0; maindelay.tv_nsec = 50000000; /* 50 ms */ + rt_test_start(); while (!shutdown) { for (i = 0; i < num_threads; i++) shutdown |= receiver[i].shutdown | sender[i].shutdown;
Use rt_test_start() to record a timestamp when the test starts. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- src/ptsematest/ptsematest.c | 1 + 1 file changed, 1 insertion(+)