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 610CFECAAA1 for ; Mon, 5 Sep 2022 08:43:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237621AbiIEInK (ORCPT ); Mon, 5 Sep 2022 04:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235191AbiIEInJ (ORCPT ); Mon, 5 Sep 2022 04:43:09 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C35C5B69 for ; Mon, 5 Sep 2022 01:43:08 -0700 (PDT) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by gnuweeb.org (Postfix) with ESMTPSA id 2C029804FD for ; Mon, 5 Sep 2022 08:43:08 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1662367388; bh=6J96x3mW8M3bkDSdhFwYDfhmT16/00u3mv7/kedunFc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Kc293hZy4Y3yPAKz6KVIm04i4hfQQV7NKk10Swd5AW2N5vGTFIX2D4uLKpq3u6c5g W9AnAUioIO3MfMVx/WmckSC2b1Bc+znTds2NxhPnfRjDgXa3SNtDo/HK8hw/XIiKBR C0sBWkn1K+BGaTfKaYp8w069c8wWjnMNOZ7iojj2xA0fd8UcN6Nvq8u5m/ppOQD8pF kZx4tedYQNA8NIKgND5DkktnZleAyHKIx+j+g+KJzZ2WooQM7VdDcDcv4ioaVUH3yQ FCWpkpYHp2KdZTQSmvVYEsL2d/8+7FljLE4c+sf8UrGnFj/GGWFbQ7aYAsfWVawaca FyrTGSUKl4ZUg== Received: by mail-lf1-f47.google.com with SMTP id j14so12138857lfu.4 for ; Mon, 05 Sep 2022 01:43:08 -0700 (PDT) X-Gm-Message-State: ACgBeo2W3Y8TJUjqgEGl/nHdRwdlW8g2gjsLxgnsFH88i6iCdo0WVJyP rhnFQ+RgbzD/RP68wqYleL73/vJc0jBIj2gbyBc= X-Google-Smtp-Source: AA6agR6SH5wlNLo07rYuPlJLs7Y7paovRou6JTU/UoJDNYmMO1lFfSBmTmtBBDM6xRhXq9Bq91v+lWj8cI7YdBg33pI= X-Received: by 2002:ac2:544d:0:b0:494:7842:23c6 with SMTP id d13-20020ac2544d000000b00494784223c6mr10264001lfn.641.1662367386056; Mon, 05 Sep 2022 01:43:06 -0700 (PDT) MIME-Version: 1.0 References: <20220905070633.187725-1-ammar.faizi@intel.com> In-Reply-To: <20220905070633.187725-1-ammar.faizi@intel.com> From: Alviro Iskandar Setiawan Date: Mon, 5 Sep 2022 15:42:54 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH liburing v1] test/ringbuf-read: Delete `.ringbuf-read.%d` before exit To: Ammar Faizi Cc: Jens Axboe , Pavel Begunkov , io-uring Mailing List , "GNU/Weeb Mailing List" , Kanna Scarlet , Muhammad Rizki Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, Sep 5, 2022 at 2:12 PM Ammar Faizi wrote: > fd = open(fname, O_WRONLY); > if (fd < 0) { > perror("open"); > - goto err; > + ret = 1; > + goto out; > } > for (i = 0; i < NR_BUFS; i++) { > memset(buf, i + 1, BUF_SIZE); > ret = write(fd, buf, BUF_SIZE); > if (ret != BUF_SIZE) { > fprintf(stderr, "bad file prep write\n"); > - goto err; > + ret = 1; > + close(fd); > + goto out; > } > } should use T_EXIT_* for ret? -- Viro