libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [patch 3/3] tests/: test-resume-sig libunwind sanity c


From: Jan Kratochvil
Subject: [Libunwind-devel] [patch 3/3] tests/: test-resume-sig libunwind sanity checks
Date: Thu, 10 May 2007 22:59:29 +0200
User-agent: Mutt/1.4.2.2i

Hi,

similiar to
        [patch] tests/: libunwind sanity checks
        during PPC port development the library had too invalid results causing
        the testsuite to lock up.  It should safely FAIL instead.

        As there are no automatic testsuite timeouts various limitations have
        been implemented into the each specific testcase.

but applied for `tests/Gtest-resume-sig.c' on top of the other patches.



2007-04-04  Jan Kratochvil  <address@hidden>

        * tests/Gtest-resume-sig.c: Fixed lockups on broken libunwind (as ppc64
        is).

--- ./tests/Gtest-resume-sig.c  12 Mar 2007 15:26:11 -0000      1.4
+++ ./tests/Gtest-resume-sig.c  4 Apr 2007 20:41:08 -0000       1.5
@@ -109,6 +109,12 @@ handler (int sig)
         {
          char buf[512];
 
+         if (stepno > 100)
+           {
+             panic ("Too many steps (%d)\n", stepno);
+             break;
+           }
+
          if ((ret = unw_get_proc_name (&c, buf, sizeof (buf), NULL)) < 0)
            panic ("unw_get_proc_name(%d) failed: ret=%d\n", stepno, ret);
          else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]