avoid call of deprecated method

to stop spam from https://build.ros.org/job/Mdev__tsid__ubuntu_bionic_amd64/
9 jobs for pr/126 in 16 minutes and 26 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
passed doc-coverage #109803

00:16:24

39.0%
failed format #109804
allowed to fail

00:00:10

passed robotpkg-py-tsid-py2-18.04-release #109797

00:11:07

passed robotpkg-py-tsid-py3-16.04-release #109796

00:00:50

passed robotpkg-py-tsid-py3-18.04-release #109798

00:11:09

passed robotpkg-py-tsid-py3-20.04-release #109799

00:15:00

passed robotpkg-py-tsid-py3-buster-release #109800

00:09:25

passed robotpkg-py-tsid-py3-stretch-release #109801

00:13:51

passed robotpkg-tsid-18.04-release #109802

00:01:18

 
Name Stage Failure
failed
format Test
   getProfiler().report_all(3, cout);
getStatistics().report_all(1, cout);
}

-
-BOOST_AUTO_TEST_SUITE_END ()
+BOOST_AUTO_TEST_SUITE_END()
Cleaning up file based variables
ERROR: Job failed: exit code 1