From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 313D1CCA482 for ; Thu, 30 Jun 2022 14:37:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237189AbiF3OhL (ORCPT ); Thu, 30 Jun 2022 10:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237097AbiF3Ogz (ORCPT ); Thu, 30 Jun 2022 10:36:55 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3A3F19290 for ; Thu, 30 Jun 2022 07:32:04 -0700 (PDT) Received: from [192.168.88.254] (unknown [180.245.197.13]) by gnuweeb.org (Postfix) with ESMTPSA id BAF36800C2; Thu, 30 Jun 2022 14:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656599524; bh=L8y1g3VL3G5xx9Z5l17ACVRT2qjYe2FaSZfh3gQ6cHQ=; h=Date:To:References:Cc:From:Subject:In-Reply-To:From; b=EtNQoBqmuUHLHyLe5vkX5Fd+pN/ZQx3hdkaSv9Tb40mka9+CQbD9vNohaiahL6p/Z EsgUAKXj1BBcBkeyMRf9IJAf+1QeYwHtMJhTM5UV28+oqZVWtGQnQh4BDwc/P/35La coEstEGs+TJtsrIBQ8AvxgFFLmsCALz4Ee39c7atN31uLBJv1F7HPY/emd01zImyuH gBa8/p3ZGkoGa94WUhPAXAxxc5VcNGl52oXBft1hXs3tskUCehron8EgrlzCFM5yUh s8Mk91RIbY9B4ojeKSk1xXDnD0RCV8BwL2AB/8lINw5othhweB2J3+S8+l8Sa4y96j Or/S1/4y/pNOw== Message-ID: Date: Thu, 30 Jun 2022 21:31:49 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Content-Language: en-US To: Pavel Begunkov References: <30f95627-eb6c-c743-8fb2-11b0b874e00b@kernel.dk> Cc: Eli Schwartz , Jens Axboe , io-uring Mailing List From: Ammar Faizi Subject: Re: [PATCH for-next 3/3] test range file alloc In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/30/22 9:19 PM, Pavel Begunkov wrote: > On 6/30/22 14:09, Jens Axboe wrote: >> On 6/30/22 3:13 AM, Pavel Begunkov wrote: >>> @@ -949,5 +1114,11 @@ int main(int argc, char *argv[]) >>>           return ret; >>>       } >>> +    ret = test_file_alloc_ranges(); >>> +    if (ret) { >>> +        printf("test_partial_register_fail failed\n"); >>> +        return ret; >>> +    } >> >> If you're returning this directly, test_file_alloc_ranges() should use >> the proper T_EXIT_foo return codes. > > Nobody cared enough to "fix" all tests to use those new codes, most > of the cases just return what they've got, but whatever. Same with > stdout vs stderr. That error code rule was invented since commit: 68103b731c34a9f83c181cb33eb424f46f3dcb94 ("Merge branch 'exitcode-protocol' of ....") Ref: https://github.com/axboe/liburing/pull/621/files Thanks to Eli who did it. Eli also fixed all tests. Maybe some are still missing, but if we find it, better to fix it. -- Ammar Faizi