From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by sourceware.org (Postfix) with ESMTPS id 61872385800A for ; Thu, 25 Mar 2021 12:48:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 61872385800A Received: by mail-qt1-x82e.google.com with SMTP id y2so1451521qtw.13 for ; Thu, 25 Mar 2021 05:48:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JZUkr9HYNcO+EwdpRR/VbuhkptmtTdjJDwSYQ0OXLMk=; b=jf6kcKc8rsmm962x7j7YGCPnt4NARLK/E0BlrVmLTOT8l5BkiKyiu+F9IDGezTx2zU LeDMdO7AAhrAHSrGO9L6qABGSVP5bbSFuPNSV4EtNdYJqISgrw85NqKqFYtAsKPKW56X nKTR6MfvZpuxGmYh+Enz0T61SHpubuvbXjnmlzX8A2m/uAHXS5M5N9Z1m2MX4aGe3UzA qjmVTJxmQ3gBvAwvImpCblMAgjRE6Hy0Yi9MxY/8z/cvQu8WZvrUHOP9dctoZVulG8fc zGe2oDm5U458K0kW8uV5BYxNNCKomOGv6PUGGEal+hx9r7PsSABKotlpVknc1hzVUYls 9tiw== X-Gm-Message-State: AOAM532M90Ae6ceRHawWIqGOKI7GLCaElXwOAZS98qYqZu8hy7JDHmxl tIsB9gbPqSxReAmEn8Fb0yz6XLvQUyvSQQ== X-Google-Smtp-Source: ABdhPJwVf4hRA4NilJF5DEHxMSyU6nACy8bc8SnDS8a9R/4rudEFo5oG0mHIekcBWWRmmE5Npg7IJw== X-Received: by 2002:ac8:4f10:: with SMTP id b16mr7186738qte.235.1616676510940; Thu, 25 Mar 2021 05:48:30 -0700 (PDT) Received: from [192.168.1.132] ([177.194.41.149]) by smtp.gmail.com with ESMTPSA id q15sm3373628qtx.47.2021.03.25.05.48.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Mar 2021 05:48:30 -0700 (PDT) Subject: Re: [PATCH] tst: Provide test for select To: Andreas Schwab , Adhemerval Zanella via Libc-alpha References: <20210314164625.9312-1-lukma@denx.de> <20210322123213.58775fbd@jawa> <39ac5960-73ef-f838-4409-20384c83b59d@linaro.org> <9dc782d3-c151-1dcb-0a2e-f6397c781761@linaro.org> <20210324213543.4ixrs66lloe7x6lx@begin> <96e005ac-0e0c-e0f9-a33e-18ce2840f542@linaro.org> <44af9ddb-de82-d354-7bab-e096e1215a8b@linaro.org> <87zgyrifva.fsf@igel.home> From: Adhemerval Zanella Message-ID: <87e516e0-edb8-a218-fd1c-4089289fb446@linaro.org> Date: Thu, 25 Mar 2021 09:48:28 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <87zgyrifva.fsf@igel.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 12:48:34 -0000 On 25/03/2021 09:20, Andreas Schwab wrote: > On Mär 25 2021, Adhemerval Zanella via Libc-alpha wrote: > >> Do you have a strace of why select is returning? It uses 2 (STDERR_FILENO) >> as on the read set, so it should trigger the timeout. > > A file is always available, so there is no timeout. > > $ ./testrun.sh misc/tst-select 2>nohup.out > tst-select.c:54: 1616674766.364168922s not after 1616674767.364165762s (difference 0.999996840s) > error: 1 test failures I did not catch it on my review, we will need a temporary file for this. I will check this out.