summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-21 23:28:35 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-21 23:30:14 (GMT)
commitb9b6258729585803e00b71280e175618b6bd50c2 (patch)
treeaa22734448d001e29c78bb1d28667ea43b621ab4 /src/testlib
parent685e98b24ce27fee3085e9f2359494960a7952ff (diff)
downloadQt-b9b6258729585803e00b71280e175618b6bd50c2.zip
Qt-b9b6258729585803e00b71280e175618b6bd50c2.tar.gz
Qt-b9b6258729585803e00b71280e175618b6bd50c2.tar.bz2
Fixed valgrind warnings related to sigaction from every testcase.
Whoops, don't do sigaction for (nonexistent) signal 0.
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 5de37dc..1d0bbcf 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -1480,7 +1480,7 @@ FatalSignalHandler::~FatalSignalHandler()
struct sigaction oldact;
- for (int i = 0; i < 32; ++i) {
+ for (int i = 1; i < 32; ++i) {
if (!sigismember(&handledSignals, i))
continue;
sigaction(i, &act, &oldact);