From patchwork Sun Nov 7 16:08:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 47183 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A74AF3858022 for ; Sun, 7 Nov 2021 16:09:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A74AF3858022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636301343; bh=/+I2nNNXzMbJeCVZDDEZkfeAWTuHqvKELV59kInlQUA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=mEHnhWRoykmWngbcD90shvihgFCK9YzZIibOp+/9K74BXW3K7zf7jHiaQwL5oI+fU nhS/9e9x9WRojn1jKWaUr5EJJzg2p994uH+KlpXVmuzQUiGpnZICAtFyQNt4QSSCG3 rkq1SWpseWU0/KjBh+u8zICKlKbJ+YTGPOMcNr8c= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id B7A603858403 for ; Sun, 7 Nov 2021 16:08:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B7A603858403 Received: by mail-pj1-x1034.google.com with SMTP id w9-20020a17090a1b8900b001a6b3b7ec17so6808678pjc.3 for ; Sun, 07 Nov 2021 08:08:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/+I2nNNXzMbJeCVZDDEZkfeAWTuHqvKELV59kInlQUA=; b=hwvuAxsMr2cSCLiPOdzs9bnnvy2ojbWDph7/EMDnEKtuKs2FIR3gV29KyM/RgFgVtZ 7R1m6p/ZpXbQKQQO0ZF1mea8dp1cRJgTioWFUmPvmHbNb0ioPp47gB6WVS1G567SU1+M WUMz0Ex//ehjtA07Ha9IM7jVotGhKz0HK0VIuyo7ZTKb/cGR25AzPriLnL0eSffWQn5y Ojf0/aBiZE5WLTcbhXJC9cha5YxPGtA/TDmaudQqmce/wwGcQ8GhHfOqm0X/n4T1PtpP nmsYpW2eXXVHjOOeG52P08EOTGxVp3Gn8yR++abxEsJHmJBamZjx7948bHISgkCm/yjY 1j0g== X-Gm-Message-State: AOAM530E58doo7MtphZCZSlkv2Vp8h5toLYk0Ue/hXa9wJ95J5OpAIjy henhmp/WFjCi4koF7yv/SpjeZ9WVRGI= X-Google-Smtp-Source: ABdhPJzys1jMpmjpK/yAkQk3uAfRARzm4zS/mMsmnwov3ml/ugMlTOI4CEQ8GgQ+uscPyc7mFSgdCQ== X-Received: by 2002:a17:90a:34b:: with SMTP id 11mr45589803pjf.188.1636301320838; Sun, 07 Nov 2021 08:08:40 -0800 (PST) Received: from gnu-cfl-2.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id c4sm13240835pfl.53.2021.11.07.08.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 08:08:40 -0800 (PST) Received: from gnu-tgl-2.localdomain (gnu-tgl-2 [192.168.1.34]) by gnu-cfl-2.localdomain (Postfix) with ESMTPS id 95D261A0635; Sun, 7 Nov 2021 08:08:39 -0800 (PST) Received: from gnu-tgl-2.lan (localhost [IPv6:::1]) by gnu-tgl-2.localdomain (Postfix) with ESMTP id 82861300329; Sun, 7 Nov 2021 08:08:29 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH] test-memcpy.c: Double TIMEOUT to (8 * 60) Date: Sun, 7 Nov 2021 08:08:29 -0800 Message-Id: <20211107160829.1004634-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3030.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-Patchwork-Original-From: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" commit d585ba47fcda99fdf228e3e45a01b11a15efbc5a Author: Noah Goldstein Date: Mon Nov 1 00:49:48 2021 -0500 string: Make tests birdirectional test-memcpy.c This commit updates the memcpy tests to test both dst > src and dst < src. This is because there is logic in the code based on the Signed-off-by: Noah Goldstein Reviewed-by: H.J. Lu significantly increased the number of tests. On Intel Core i7-1165G7, test-memcpy takes 120 seconds to run when machine is idle. Double TIMEOUT to (8 * 60) for test-memcpy to avoid timeout when machine is under heavy load. --- string/test-memcpy.c | 1 + string/test-string.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/string/test-memcpy.c b/string/test-memcpy.c index 3b0f3127b7..101d51c487 100644 --- a/string/test-memcpy.c +++ b/string/test-memcpy.c @@ -22,6 +22,7 @@ # define MIN_PAGE_SIZE 131072 # define TEST_MAIN # define TEST_NAME "memcpy" +# define TIMEOUT (8 * 60) # include "test-string.h" char *simple_memcpy (char *, const char *, size_t); diff --git a/string/test-string.h b/string/test-string.h index 8ee00a04b1..9a6b76daa4 100644 --- a/string/test-string.h +++ b/string/test-string.h @@ -68,7 +68,9 @@ extern impl_t __start_impls[], __stop_impls[]; # define TEST_FUNCTION test_main -# define TIMEOUT (4 * 60) +# ifndef TIMEOUT +# define TIMEOUT (4 * 60) +# endif # define OPT_ITERATIONS 10000 # define OPT_RANDOM 10001 # define OPT_SEED 10002