From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by sourceware.org (Postfix) with ESMTPS id 173863858D32 for ; Mon, 12 Feb 2024 13:56:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 173863858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 173863858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1136 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707746185; cv=none; b=E+3efqPxldZTuzeeW8RC6WgwNmpxHAQfWAGUg/51h7z3iDCqjQdKB+AnW0n55tkf/iePH41L+K/2ygbH4Wwyl4kt4UauH/dKvZTrHBGNXdWFZQzUQuw1b5idFTmPhsEtHTKh5tJzymJ+5RuP3coNVTKb9K46/o6CwEtkA+Z+zAg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707746185; c=relaxed/simple; bh=zn7bFV8UNUd7Di9E7oBMF6JGbcnNAa5DdssNDWm8+Gg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=fMrImOckdXGxYVvykAv9NO1m1Q7GTUUwUKS7JA14M9lQwF84ktXhvlfAUtNUmJyhe7YK8Z2K7fC+5B3V2vAwOHOKWIFJH21wl7WWtVNlp2qA79g9xrLxVGewKBjpsWxGOIfkfWl8a/FvYKeR5pqjxjKgamIzIDt2A4B25DF9HhA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-604ac794c01so21442327b3.2 for ; Mon, 12 Feb 2024 05:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707746183; x=1708350983; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eC8A9oEt7qo/cJ5Q5aNh4zvJRZj2W6S9umxA7ml1eIc=; b=O7AqK4Q+IqfVCoZ/BbegiQrGHxLP/cI4yZNn9ZZLzSJ/WzOTS/LCyaD9i9fEN5Y4x7 WNOcS4hvifurdeOxxM9Xkl8eRY6DJyB441V+bmyObvcpLHgS6YIKvvwqHU+/SpJhWYVL +ucoj1hq5EPYp8MzG9dG6bRTpqbgG/W6++yTm1YRBF3i0ZcjXNsb8HxlPtusi9xEi9Xl 3+0IoprIGBYEuG5//oKByif66xcScL3Ovsw+SFsVmQeyfifeNp+s1AgsN+1c0JbSh+R9 maQicegOYTRcbEAocxgXrAFQ3ahUhmmZBoe8RzUHJWC6pQ2SPd5rtNGvV8oc8zwitHy9 /aBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707746183; x=1708350983; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eC8A9oEt7qo/cJ5Q5aNh4zvJRZj2W6S9umxA7ml1eIc=; b=nVInfJN/qv8tHOTDqhkZQMb0LeOL664mIYa0wijsA/C1eYmeqjiRWK5Cz0ksSGj35k FNZLD4/vCMHIeUEYf7+Qsgk79nZRo9L1qPiLEoT5pXBjT/MgPMeL2GT8bWOGTqfq6wKs KazwKUcMtUCl/Sh+qH6k6v4gI7xIgkuLb63vuqV7s+wxIhRshNvJ6mQKt1j0/GeTERmj b3IvTGrLt7SvxyCqgAZDnwJrhiJbtyQnIr6ygVeYrlLpVe2UdJVjredMhpaDRhNkWFbv RdzPkXeXljZSEXQdmgC0BLzDU+RRs9ii1LySiblEQ1rAyyWcLjwHTSVQgv/6iLaEJ5mk lcnw== X-Gm-Message-State: AOJu0YxWgktCOu779ZIFa/JZnPAsy31ZMZEO18+fEnQOoiu1HcH9f2SF 3bFCjhDnDEfgOIbDogzDSu911DZ5G8GzpWOmJH75p3GqlW/WO9m/AZessw1KqZgbhLnn/Gqk5hn Kr/EXXjdNbNcx6YhylwGE1B2AShM= X-Google-Smtp-Source: AGHT+IHd6oVx5HMqwjYy4jUQpeydpLgHGklOj2IfBniKyrWht3RSMabU6ZfuROY7dnQ/GEygf2uWADcxesr2wbCtD7s= X-Received: by 2002:a0d:dfc5:0:b0:607:78a1:dbda with SMTP id i188-20020a0ddfc5000000b0060778a1dbdamr325549ywe.25.1707746183398; Mon, 12 Feb 2024 05:56:23 -0800 (PST) MIME-Version: 1.0 References: <20240212133532.159366-1-hjl.tools@gmail.com> <87le7pbxrf.fsf@oldenburg3.str.redhat.com> In-Reply-To: <87le7pbxrf.fsf@oldenburg3.str.redhat.com> From: "H.J. Lu" Date: Mon, 12 Feb 2024 05:55:47 -0800 Message-ID: Subject: Re: [PATCH] test_printers_common.py: Remove invalid escape sequence To: Florian Weimer Cc: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3020.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, Feb 12, 2024 at 5:47=E2=80=AFAM Florian Weimer = wrote: > > * H. J. Lu: > > > Remove '\(' and '\)' from test_printers_common.py which aren't valid > > Python escape sequences. This fixes the test warning: > > > > .../scripts/test_printers_common.py:101: SyntaxWarning: invalid escape = sequence '\(' > > --- > > scripts/test_printers_common.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/test_printers_common.py b/scripts/test_printers_co= mmon.py > > index bf700966ac..7085a2fbc2 100644 > > --- a/scripts/test_printers_common.py > > +++ b/scripts/test_printers_common.py > > @@ -98,7 +98,7 @@ try: > > # If everything's ok, spawn the gdb process we'll use for testing. > > gdb =3D pexpect.spawn(gdb_invocation, echo=3DFalse, timeout=3Dtime= out, > > encoding=3Dencoding) > > - gdb_prompt =3D u'\(gdb\)' > > + gdb_prompt =3D u'(gdb)' > > gdb.expect(gdb_prompt) > > > > except pexpect.ExceptionPexpect as exception: > > This changes the string, you should use: > > + gdb_prompt =3D u'\\(gdb\\)' > This change, \\( and \\), causes: FAIL: nptl/test-cond-printers FAIL: nptl/test-condattr-printers FAIL: nptl/test-mutex-printers FAIL: nptl/test-mutexattr-printers FAIL: nptl/test-rwlock-printers FAIL: nptl/test-rwlockattr-printers My change doesn't have any regression. --=20 H.J.