Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1335056ybj; Thu, 7 May 2020 21:58:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKuda2o3wv4IDSSnAalmWS6iUi105/3wHLJ8kgqPioOmbs43DYRW4aB40cL/xynYEFHqPOg X-Received: by 2002:a17:906:2b96:: with SMTP id m22mr347702ejg.330.1588913937146; Thu, 07 May 2020 21:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588913937; cv=none; d=google.com; s=arc-20160816; b=ErtirkRt+TTiIGx0WUR5oy80KxnW1ovzK8Qp6Qh5/uaItopNUg4KrV7dFzcS/Kv2YP 8wIjDXRB9/ZRilcjRN9n6iJTT3+KTBkFI749yfVnJoDi92Ph0J6JaX8iL+VMEUKBKTME 0XPsbQ43K5HnOQbADLJKMHnvGxT/WtoAYF6VSITvCjC+WxTGYUPWEilXXxN8/o1FfVGu 7/rua5zUIVGUs7DTUGQA4w1O5UcU6doJQU3NxPwqXBdn0vSzLiFcxkQBbJ7TPOs72b/N ji8jTt3DCJiQQvVMMBgf/PZb0yDq8VxDlyYXvH+lcYzi+2wO5kZiNTagFkFhSEuxDP2a qd/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=4CNZy247ICcFx3HCeAu3lFAco0E9gMG+0QdnsbzPiRo=; b=GayjEHlm+oEMqJihjl+l50HoRfVLE4koLq0+e2c491qxusKOAoniaCCtTjXd78jI6V BQssadxlo/Fu6oBfpQ7d/G/7t3nAsSLr8eLIJFwiOpKqRWEfidRrQxrLQf4BoN1iM6Ln 4EcjJQ27Jl+G8s4cjNLpD8IDGFzbk2aoeTEihDPaVq3obVKGWFxBWoJDnMNyhrrkRefT y1N7S30mGOkVzeAqs54X6hWmKNk4c7tzMQ6TLhIVqvAkI3hfrKLCMGNIeTWOyofMdgD0 6pyxpTsxSc03eZD+X74zd6+RYGyE9BHHLkQcFznkhuB9gWfykbDjDAzebKXQphoYZUI0 hSJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YongsVUN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si285882edj.527.2020.05.07.21.58.24; Thu, 07 May 2020 21:58:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YongsVUN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726167AbgEHE4Q (ORCPT + 99 others); Fri, 8 May 2020 00:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbgEHE4Q (ORCPT ); Fri, 8 May 2020 00:56:16 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66259C05BD09 for ; Thu, 7 May 2020 21:56:16 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id f6so327001pgm.1 for ; Thu, 07 May 2020 21:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4CNZy247ICcFx3HCeAu3lFAco0E9gMG+0QdnsbzPiRo=; b=YongsVUNpHD9pyODgLUWb/61UgHn39x8OVioXsqsF8t1wwG89KBDqSL6gSxorgd9k/ g5T8jWEiH3DSGv7acmuQXIGGzN7sTXF3NStQ2YTee6G0PEbK67HSSVAtPAHU9XybTN1M aQ49zkZht+DgamSC1QAGbZEfnNrfzBGWhEB/FJGNrkzwzZtGdLWQFuz02wCT9TT6IvwC JdFrTlS8NmCdS1cvcoyFmjapEa4vx4HKpdpKrw8Z0ql2EQG1ZMEzABuFIgLN6U99b9Ta gUYdOvR0cOs+31NukcL5XHWI8vGgztzelE+KIPZ0szEB++UYVvFk1gbHMIiKxJMQQh+u GA2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4CNZy247ICcFx3HCeAu3lFAco0E9gMG+0QdnsbzPiRo=; b=D8/+8zMZs9kia+YpCXsCNGzPiI5AH5HaGRrhn+0W/cTjYaVAFw0l7nXGTKXQNSnsUM V4d0AKlYd6X4OshhFNb+SxfR1mOp8RlcwO4YkhAIf0QSDRTc6uhzaoFkzz2lnBamKHpz X0A6QHXqOzgJJ472qg+JzVz0Onmcn3SJwIZ7VJ8blY2n8rptmNi2JB/2Gf/nckUVT0RL 42ll2Ptt0wfUqxJVtVXPlNRkY5QLuo7Xim51h/6NUJPtlObzxxyFt+QbrwKYGTDR+Ib2 I4839FXWObJaGh6h7sy1j+3bBMI4dr8WBWFVORftaebPLcEQYxsQuDCHRSxMpFeprozU Hi+A== X-Gm-Message-State: AGi0PuYGIAVogzArwA2pL7i4lCdTGp0RYBEiXjhhcl2dUhh1aK5rqBXX /yhT69RFm5qkUGmdf25tbWXFjKCsxR4= X-Received: by 2002:a63:5824:: with SMTP id m36mr588890pgb.439.1588913775577; Thu, 07 May 2020 21:56:15 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d124sm426812pfa.98.2020.05.07.21.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 21:56:14 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Sumit Semwal , Benjamin Gaignard , Brian Starkey , Laura Abbott , "Andrew F. Davis" , linux-kselftest@vger.kernel.org Subject: [PATCH] kselftests: dmabuf-heaps: Fix confused return value on expected error testing Date: Fri, 8 May 2020 04:56:10 +0000 Message-Id: <20200508045610.80522-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When I added the expected error testing, I forgot I need to set the return to zero when we successfully see an error. Without this change we only end up testing a single heap before the test quits. Cc: Shuah Khan Cc: Sumit Semwal Cc: Benjamin Gaignard Cc: Brian Starkey Cc: Laura Abbott Cc: "Andrew F. Davis" Cc: linux-kselftest@vger.kernel.org Signed-off-by: John Stultz --- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c index cd5e1f602ac9..909da9cdda97 100644 --- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c @@ -351,6 +351,7 @@ static int test_alloc_errors(char *heap_name) } printf("Expected error checking passed\n"); + ret = 0; out: if (dmabuf_fd >= 0) close(dmabuf_fd); -- 2.17.1