From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92513 invoked by alias); 3 Nov 2016 20:11:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 92371 invoked by uid 89); 3 Nov 2016 20:11:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=ack X-HELO: mail-vk0-f51.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wfURDAidIw5iDx8g8K2t4oPHmhgBp7Q90VcENlJ6E+w=; b=bZmRqge+nb7mh7dMRzIpLejDQURQXWf7C8iczfV/4JNuDSmr6+9E0JubojsG+fKWN4 MW4uNMlOdJRjkC+rlLT2so8U7Lzgqnif9NgAv/QxwAC2UdQF2hLMuLvvB55vbygN4IMp cgfFjG4erYMp8RVJDTQtvBZYoJ1QzJHuWPPQ7KH2DIwAfF1Di1kSgGcLl3BpBRRMnwts tXtDY5LvutskQk0YTlNUPEXyIEwsJw2It6E3hTZ26FTFmQRuklhgz8VTrl9hpXt0kX/K oaG+Kokm4F4ZZdq3sjvtvzLLTqiUpv5UI79AbQgE4f4UYWMF+23YDBCILDE4hydTwsup hpVg== X-Gm-Message-State: ABUngvfYqocTlrJQpMl6NU594MOzbVZl9t46qNKAxq77atn+N9mC13WTk8RfKIR+YWPxyHu9 X-Received: by 10.31.87.133 with SMTP id l127mr9172665vkb.152.1478203864378; Thu, 03 Nov 2016 13:11:04 -0700 (PDT) Subject: Re: [PATCH v2 11/16] Add SYSV semaphore test To: Yury Norov References: <1478114813-3526-1-git-send-email-adhemerval.zanella@linaro.org> <1478114813-3526-12-git-send-email-adhemerval.zanella@linaro.org> <20161103171011.GC31761@yury-N73SV> Cc: libc-alpha@sourceware.org From: Adhemerval Zanella Message-ID: <3eb48bb7-8569-40c8-426c-41005d67f125@linaro.org> Date: Thu, 03 Nov 2016 20:11:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161103171011.GC31761@yury-N73SV> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-11/txt/msg00116.txt.bz2 On 03/11/2016 15:10, Yury Norov wrote: >> diff --git a/sysvipc/test-sysvsem.c b/sysvipc/test-sysvsem.c >> new file mode 100644 >> index 0000000..178a424 >> --- /dev/null >> +++ b/sysvipc/test-sysvsem.c >> @@ -0,0 +1,115 @@ >> +/* Basic tests for SYSV semaphore functions. >> + Copyright (C) 2016 Free Software Foundation, Inc. >> + This file is part of the GNU C Library. >> + >> + The GNU C Library is free software; you can redistribute it and/or >> + modify it under the terms of the GNU Lesser General Public >> + License as published by the Free Software Foundation; either >> + version 2.1 of the License, or (at your option) any later version. >> + >> + The GNU C Library is distributed in the hope that it will be useful, >> + but WITHOUT ANY WARRANTY; without even the implied warranty of >> + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >> + Lesser General Public License for more details. >> + >> + You should have received a copy of the GNU Lesser General Public >> + License along with the GNU C Library; if not, see >> + . */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +static void do_prepare (void); >> +#define PREPARE(argc, argv) do_prepare () >> +static int do_test (void); >> +#define TEST_FUNCTION do_test () >> + >> +/* This defines the `main' function and some more. */ >> +#include >> + >> +/* These are for the temporary file we generate. */ >> +static char *name; >> +static int semid; >> + >> +static void >> +remove_sem (void) >> +{ >> + /* Enforce message queue removal in case o early test failure. > > Trailing whitespace Ack, I fixed in my local branch.