From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31595 invoked by alias); 18 Jul 2013 13:36:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31570 invoked by uid 89); 18 Jul 2013 13:36:38 -0000 X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 18 Jul 2013 13:36:35 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6IDaPK6014165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 18 Jul 2013 09:36:26 -0400 Received: from barimba (ovpn-113-128.phx2.redhat.com [10.3.113.128]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r6IDaNnD013009 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 18 Jul 2013 09:36:24 -0400 From: Tom Tromey To: Yao Qi Cc: Subject: Re: [PATCH 2/4] introduce parallel mode References: <1374073124-23602-1-git-send-email-tromey@redhat.com> <1374073124-23602-3-git-send-email-tromey@redhat.com> <51E7E27E.5030800@codesourcery.com> Date: Thu, 18 Jul 2013 13:36:00 -0000 In-Reply-To: <51E7E27E.5030800@codesourcery.com> (Yao Qi's message of "Thu, 18 Jul 2013 20:41:34 +0800") Message-ID: <87txjsc7mw.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-07/txt/msg00448.txt.bz2 Tom> Second, this adds an "inotify" mode. If you have the inotifywait Tom> command (part of inotify-tools), you can set the GDB_INOTIFY variable. Tom> This will tell the test suite to watch for changes outside of the Tom> allowed output directories. Tom> This mode is useful for debugging the test suite, as it issues a Tom> report whenever a possibly parallel-unsafe file open is done. Yao> Where can I get this report? is it mixed in testsuite/gdb.log? An Yao> example here would be helpful. Good idea :) It is just printed to the stdout of runtest. That's because we just invoke inotifywait without redirections. I suppose if we have the file descriptor of the log file available, we could send the output to the log. Here's a case where the test suite still makes a file outside the allowed directories: barimba. runtest GDB_INOTIFY=yes GDB_PARALLEL=yes --directory=gdb.server [...] Running ../../../archer/gdb/testsuite/gdb.server/ext-run.exp ... Running ../../../archer/gdb/testsuite/gdb.server/file-transfer.exp ... ./ CREATE down-server ./ CREATE up-server ./ DELETE down-server ./ DELETE up-server ./ CREATE down-server ./ CREATE up-server ./ DELETE down-server ./ DELETE up-server Running ../../../archer/gdb/testsuite/gdb.server/no-thread-db.exp ... Running ../../../archer/gdb/testsuite/gdb.server/server-exec-info.exp ... Tom