From 2187f0e7b08d872b2ff618be679a15e213b6c25d Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 12 Sep 2015 13:17:49 -0300 Subject: [PATCH] Add a delimiter before "TracerPid" Future-proofing against a future version of the Linux kernel adding a "FooTracerPid:" before the TracerPid entry. Change-Id: I42e7ef1a481840699a8dffff140347457902900f Reviewed-by: Simon Hausmann --- src/testlib/qtestcase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 7f199182f9..000470e9e5 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -2503,7 +2503,7 @@ static bool debuggerPresent() return false; } buffer[size] = 0; - const char tracerPidToken[] = "TracerPid:"; + const char tracerPidToken[] = "\nTracerPid:"; char *tracerPid = strstr(buffer, tracerPidToken); if (!tracerPid) { close(fd);