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 | |
parent | a879fdb267171e2dfaccd3047dc5ae6d0f4bdc7e (diff) | |
download | fsf-binutils-gdb-9d9f26d8b1a15561af02370f15be0af0d56ac5fa.zip fsf-binutils-gdb-9d9f26d8b1a15561af02370f15be0af0d56ac5fa.tar.gz fsf-binutils-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')
-rwxr-xr-x | gprofng/configure | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/gprofng/configure b/gprofng/configure index 7aff0be..c39dc85 100755 --- a/gprofng/configure +++ b/gprofng/configure @@ -657,8 +657,6 @@ PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -RUN_TESTS_FALSE -RUN_TESTS_TRUE subdirs BUILD_SRC_FALSE BUILD_SRC_TRUE @@ -12223,7 +12221,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12226 "configure" +#line 12224 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12329,7 +12327,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12332 "configure" +#line 12330 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15762,28 +15760,16 @@ else fi -run_tests=false if test x$build_collector = xtrue; then subdirs="$subdirs libcollector" - if test x${host} = x${target}; then - run_tests=true - fi -fi - if test x$run_tests = xtrue; then - RUN_TESTS_TRUE= - RUN_TESTS_FALSE='#' -else - RUN_TESTS_TRUE='#' - RUN_TESTS_FALSE= fi - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -16710,7 +16696,11 @@ fi` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5 $as_echo "$ac_cv_libctf_tcl_try" >&6; } - if test "${ac_cv_libctf_tcl_try}" = yes; then + +# Only native testing and only on supported platforms: + if test "${ac_cv_libctf_tcl_try}" = yes \ + -a "x${build_src}" = xtrue -a "x${build_collector}" = xtrue \ + -a "x${host}" = "x${target}"; then TCL_TRY_TRUE= TCL_TRY_FALSE='#' else @@ -17115,10 +17105,6 @@ if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then as_fn_error $? "conditional \"BUILD_SRC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then - as_fn_error $? "conditional \"RUN_TESTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then as_fn_error $? "conditional \"TCL_TRY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 |