From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95640 invoked by alias); 15 Aug 2017 13:34:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 89192 invoked by uid 89); 15 Aug 2017 13:34:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1678 X-HELO: mx1.suse.de From: Andreas Schwab To: Florian Weimer Cc: GNU C Library Subject: Re: [PATCH] Test for profiling support (_mcount/gprof) References: <4d15086e-9e54-014b-1a50-16534f287e24@redhat.com> <539fb6f1-9d96-01d5-0f35-f3c312c0ecbb@redhat.com> <87b76487-16d3-78b4-9651-f6d375b9b137@redhat.com> X-Yow: If this was a SWEDISH MOVIE, I'd take off your GO-GO BOOTS!! Date: Tue, 15 Aug 2017 13:34:00 -0000 In-Reply-To: <87b76487-16d3-78b4-9651-f6d375b9b137@redhat.com> (Florian Weimer's message of "Tue, 15 Aug 2017 15:03:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-08/txt/msg00566.txt.bz2 On Aug 15 2017, Florian Weimer wrote: > diff --git a/gmon/tst-gmon-gprof.sh b/gmon/tst-gmon-gprof.sh > new file mode 100644 > index 0000000000..b10a6e0763 > --- /dev/null > +++ b/gmon/tst-gmon-gprof.sh > @@ -0,0 +1,59 @@ > +#!/bin/sh > +# Check the output of gprof against a carfully crafted binary. > +# Copyright (C) 2017 Free Software Foundation, Inc. > +# This file is part of the GNU C Library. > + > +# The GNU C Library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > + > +# The GNU C Library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > + > +# You should have received a copy of the GNU Lesser General Public > +# License along with the GNU C Library; if not, see > +# . > + > +LC_ALL=C > +export LC_ALL > +set -e > +exec 2>&1 > + > +GPROF="$1" > +program="$2" > +data="$3" > + > +actual=$(mktemp) > +expected=$(mktemp) > +expected_dot=$(mktemp) > +cleanup () { > + rm -f "$actual" > + rm -f "$expected_dot" > +} > +trap cleanup 0 That doesn't clean $expected. Ok with that change. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."