diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2023-07-12 15:03:28 -0700 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2023-07-13 21:53:36 -0700 |
commit | 9d9f26d8b1a15561af02370f15be0af0d56ac5fa (patch) | |
tree | 3b2d342022f6f33d7560b780b69a56e065de0b48 /gprofng/configure.ac | |
parent | a879fdb267171e2dfaccd3047dc5ae6d0f4bdc7e (diff) | |
download | gdb-9d9f26d8b1a15561af02370f15be0af0d56ac5fa.zip gdb-9d9f26d8b1a15561af02370f15be0af0d56ac5fa.tar.gz gdb-9d9f26d8b1a15561af02370f15be0af0d56ac5fa.tar.bz2 |
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.
Diffstat (limited to 'gprofng/configure.ac')
-rw-r--r-- | gprofng/configure.ac | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gprofng/configure.ac b/gprofng/configure.ac index cba3e44..cfca82e 100644 --- a/gprofng/configure.ac +++ b/gprofng/configure.ac @@ -74,14 +74,9 @@ build_src= AM_CONDITIONAL([BUILD_COLLECTOR], [test x$build_collector = xtrue]) AM_CONDITIONAL([BUILD_SRC], [test x$build_src = xtrue]) -run_tests=false if test x$build_collector = xtrue; then AC_CONFIG_SUBDIRS([libcollector]) - if test x${host} = x${target}; then - run_tests=true - fi fi -AM_CONDITIONAL([RUN_TESTS], [test x$run_tests = xtrue]) AX_PTHREAD # Specify a location for JDK @@ -204,7 +199,11 @@ if @<:@llength @<:@info commands try@:>@@:>@ then { puts yes } else { puts no } EOF fi` ]) -AM_CONDITIONAL(TCL_TRY, test "${ac_cv_libctf_tcl_try}" = yes) + +# Only native testing and only on supported platforms: +AM_CONDITIONAL(TCL_TRY, [test "${ac_cv_libctf_tcl_try}" = yes \ + -a "x${build_src}" = xtrue -a "x${build_collector}" = xtrue \ + -a "x${host}" = "x${target}"]) AM_ZLIB |