From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHBlR-0006sl-Sm for qemu-devel@nongnu.org; Fri, 11 May 2018 13:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHBlM-0004oY-SR for qemu-devel@nongnu.org; Fri, 11 May 2018 13:23:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33188 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fHBlM-0004oK-NR for qemu-devel@nongnu.org; Fri, 11 May 2018 13:23:24 -0400 Date: Fri, 11 May 2018 20:23:22 +0300 From: "Michael S. Tsirkin" Message-ID: <20180511202212-mutt-send-email-mst@kernel.org> References: <1525376963-79623-1-git-send-email-mst@redhat.com> <1525376963-79623-37-git-send-email-mst@redhat.com> <87o9hq8hcs.fsf@secure.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o9hq8hcs.fsf@secure.laptop> Subject: Re: [Qemu-devel] [PATCH 36/67] migration: add include directory headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, eblake@redhat.com, berrange@redhat.com, kwolf@redhat.com, peter.maydell@linaro.org, "Dr. David Alan Gilbert" On Tue, May 08, 2018 at 02:25:07PM +0200, Juan Quintela wrote: > "Michael S. Tsirkin" wrote: > > This way they are easier to find using standard rules. > > > > Signed-off-by: Michael S. Tsirkin > > Nack. > > This are _internal_ files, that shouldn't be used anywere elese. > > Except .... that we need them to write tests. We only have two scopes > on qemu: > - internal: only for the subsystem we are at in > - pubilc: they can be used everywhere > > So, tests came in a strange class here, because they need internal > implementation, but they are not in the proper directory due to the way > we do tests. > I *think* that using complete paths is the only reasonable way of doing > this. > > Thanks, Juan. So how about tests include internal headers in a special way then? #include "../migration/foo.h" works but makes it clear something unusual is going on.