gprofng: 30602 [2.41] gprofng test hangs on i686-linux-gnu
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 12 Jul 2023 22:03:28 +0000 (15:03 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Fri, 14 Jul 2023 04:53:36 +0000 (21:53 -0700)
commit9d9f26d8b1a15561af02370f15be0af0d56ac5fa
tree3b2d342022f6f33d7560b780b69a56e065de0b48
parenta879fdb267171e2dfaccd3047dc5ae6d0f4bdc7e
gprofng: 30602 [2.41] gprofng test hangs on i686-linux-gnu

There were several problems in the gprofng testing:
 - we did not catch a timeout for each test.
 - we used exit() to stop a failed test. But this stops all other tests.
 - we used a time_t (long) type in smalltest.c instead of a long long type.

PR gprofng/30602
* configure.ac: Launch only native testing.
* configure: Rebuild.
* testsuite/config/default.exp: Set TEST_TIMEOUT.
* testsuite/gprofng.display/setpath_map.exp: Use return instead of exit.
* testsuite/gprofng.display/gp-archive.exp: Likewise.
* testsuite/gprofng.display/gp-collect-app_F.exp: Likewise.
* testsuite/gprofng.display/display.exp: Delete an unnecessary test
for native testing.
* testsuite/lib/display-lib.exp (run_native_host_cmd): Add timeout.
* testsuite/lib/smalltest.c: Use a long long type instead of time_t.
gprofng/configure
gprofng/configure.ac
gprofng/testsuite/config/default.exp
gprofng/testsuite/gprofng.display/display.exp
gprofng/testsuite/gprofng.display/gp-archive.exp
gprofng/testsuite/gprofng.display/gp-collect-app_F.exp
gprofng/testsuite/gprofng.display/setpath_map.exp
gprofng/testsuite/lib/display-lib.exp
gprofng/testsuite/lib/smalltest.c