From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39273 invoked by alias); 4 Jul 2018 09:44:17 -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 39260 invoked by uid 89); 4 Jul 2018 09:44:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=julio, Julio, UD:amazonses.com, amazonsescom X-HELO: a4-71.smtp-out.eu-west-1.amazonses.com Received: from a4-71.smtp-out.eu-west-1.amazonses.com (HELO a4-71.smtp-out.eu-west-1.amazonses.com) (54.240.4.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Jul 2018 09:44:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=jl7vyxitgsfircfdhxflkj2c3tgxidze; d=farjump.io; t=1530697453; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id; bh=PF+dbmZjw4jspFOpbnIuvY/pAACeSSSosZt/jok/17U=; b=P0Jr2zWfpj2LBx/yiaAYG6i4poVXpW4xlGKesLcXEKol8dbxVS9436luvmf8MDgw 9yccyVsV7ObVhclC9mwffS7KvZ4kFIa5X1hicIK+kED88yhJir6O9dGOdGSAmjWFS5D 8P1Sje9uEYa5NIt8tdHN5MOYq3sc7eW9VcTWdlyg= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1530697453; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References:Message-Id:Feedback-ID; bh=PF+dbmZjw4jspFOpbnIuvY/pAACeSSSosZt/jok/17U=; b=f2EyhoH4AzP4Yw4dWRYAH8WLAo8JutHjh3fUcgkzZ4PU/Si//wDLH8jpKdOz1aPr eKdG86RpmusO18VAOYoZL8jBTKdNpYIiUZXC2rc4Bzu6aOuZmGrqJTRhGbLbjgdQCcO B1pl85IfMx06p9mD1pwJPwelOp69pV5ZNcCGk+lc= Subject: Re: [PATCH v3] Allow using special files with File I/O functions From: =?UTF-8?Q?Julio_Guerra?= To: =?UTF-8?Q?Pedro_Alves?= , =?UTF-8?Q?gdb-patches=40s?= =?UTF-8?Q?ourceware=2Eorg?= Date: Wed, 04 Jul 2018 09:44:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit In-Reply-To: References: <20180628192635.44056-1-julio@farjump.io> <0102016447dcf9e9-3989bcd9-1272-4a05-93c5-77823c7a0921-000000@eu-west-1.amazonses.com> <3c1caf7f-f50f-a8d7-43f3-f8fa8eca663d@redhat.com> <79758ca1-2541-9ae6-d793-b367d6094468@farjump.io> <010201644bd94c4b-0d8759a9-5625-4773-a858-6e218d4fc9db-000000@eu-west-1.amazonses.com> <9e53034b-7e28-625e-ad70-fbb53863c7e1@redhat.com> <6ea235bf-bc87-256a-e745-e54f5e97bf5c@farjump.io> <010201644bfcc9f7-34e2955f-fdda-460d-9ffd-f03a76b20d30-000000@eu-west-1.amazonses.com> <817850f4-7ee1-6301-2256-a85b7a9edb02@farjump.io> Message-ID: <0102016464ad8f06-3019c95a-a2d1-4294-a360-6b436618ea6e-000000@eu-west-1.amazonses.com> X-SW-Source: 2018-07/txt/msg00079.txt.bz2 Pedro, > You can run the testsuite against other remote stubs, not just gdbserver. > Ideally, you'd set up the testsuite to against your stub. Did you try > that? I'd recommend that regardless. > > Otherwise, even if we only test it when natively run, other folks that have > embedded stubs that support fileio will end up exercising the test. I have almost finished writing the tests, but I am struggling on how to create some special files: - Creating block or character devices require mknod with root privileges. - Creating a unix socket is not supported by the TCL library, and require extra tools (netcat, socat...) to create one from the command line. Here is what I use for now for the other types: - Link: TCL function `file link` - Regular: TCL function `open` - FIFO pipe command line: `mknod myfifo p` or `mkfifo myfifo` which doesn't exist on Windows. What do you suggest? Should I avoid every non portable test cases, which limits the tests only to links, regular files and directories? -- Julio Guerra