This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] introduce parallel mode
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 18 Jul 2013 07:36:23 -0600
- Subject: Re: [PATCH 2/4] introduce parallel mode
- References: <1374073124-23602-1-git-send-email-tromey at redhat dot com> <1374073124-23602-3-git-send-email-tromey at redhat dot com> <51E7E27E dot 5030800 at codesourcery dot com>
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