From unknown Mon Aug 18 00:07:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44712: Inconsistent directory lookup of executable in dejagnu.exp/host_execute Resent-From: Robert Menteer Original-Sender: "Debbugs-submit" Resent-CC: bug-dejagnu@gnu.org Resent-Date: Tue, 17 Nov 2020 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44712 X-GNU-PR-Package: dejagnu X-GNU-PR-Keywords: To: 44712@debbugs.gnu.org X-Debbugs-Original-To: Robert Menteer via Bug-dejagnu Received: via spool by submit@debbugs.gnu.org id=B.160564053613755 (code B ref -1); Tue, 17 Nov 2020 19:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2020 19:15:36 +0000 Received: from localhost ([127.0.0.1]:32955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6S0-0003Zm-1p for submit@debbugs.gnu.org; Tue, 17 Nov 2020 14:15:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:60620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6Ry-0003Zf-EW for submit@debbugs.gnu.org; Tue, 17 Nov 2020 14:15:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6Ry-0002ba-76 for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 14:15:34 -0500 Received: from st43p00im-zteg10062001.me.com ([17.58.63.166]:44149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6Rv-0008BQ-MR for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 14:15:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1605640527; bh=yFGdBdZRy7L57v/B5q8LKfBQ9WeJQGMVViw7Nq3qcjQ=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=qdxJHAdoYP50ycTk49BG/FXKcVVwSIQndCtCnJWbSPXYPDippNAi7MbOuri251bLR LQFNj27qen7izvUQOm8JFUmemMf7P8syl6R++UDCyqqO75Ok+JCgFzAKBZC2qUeTU7 yaOnjAccwR0bie5imt0ORnNj1u6tPURPWGOqR9OQHBBIYgdvSjste97jm1DYjqEtr6 LPc4nILBohK2WfrmWh7okeOFTnD+b+3FqPB+I4Rl3+gzjZSjxJ1jh8msXe6BcC3yP2 eOuuUIcdecnATMdnQG+GpNdCOVl5Tq7Z05vXthT5ezkhJz1uWIX9mm2BpE6nN3nzMg PAdCV2Hly4M2Q== Received: from [192.168.0.18] (nc-71-50-141-172.dyn.embarqhsd.net [71.50.141.172]) by st43p00im-zteg10062001.me.com (Postfix) with ESMTPSA id A35876C09EB for ; Tue, 17 Nov 2020 19:15:26 +0000 (UTC) From: Robert Menteer Content-Type: multipart/alternative; boundary="Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Message-Id: Date: Tue, 17 Nov 2020 14:15:25 -0500 X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-17_07:2020-11-17, 2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=752 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2011170139 Received-SPF: pass client-ip=17.58.63.166; envelope-from=reetnem@mac.com; helo=st43p00im-zteg10062001.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 14:15:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If you call =E2=80=98host_execute /fullpath/testsuite/unit-test/unit=E2=80= =99, host_execute can find the unit test but not execute it. If you call =E2=80=98host_execute /testsuite/unit-test/unit=E2=80=99, = host_execute can=E2=80=99t find the unit test (but could execute it). If you call =E2=80=98host_execute testsuite/unit-test/unit=E2=80=99, = host_execute works. This is because the lookup of the executable is done using: if {![file exists ${executable}]}=20 And the executing is done using: spawn -noecho "./$executable" ${params} Please make the usage of $executable consistent and document how = host_execute should be called.= --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 If = you call =E2=80=98host_execute /fullpath/testsuite/unit-test/unit=E2=80=99= , host_execute can find the unit test but not execute it.

If you call = =E2=80=98host_execute /testsuite/unit-test/unit=E2=80=99, host_execute = can=E2=80=99t find the unit test (but could execute it).

If you call = =E2=80=98host_execute testsuite/unit-test/unit=E2=80=99, host_execute = works.

This is = because the lookup of the executable is done using:

if = {![file exists ${executable}]} 

And the executing is = done using:

spawn -noecho "./$executable" ${params}

Please make the usage of = $executable consistent and document how host_execute should be = called.
= --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE-- From unknown Mon Aug 18 00:07:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44712: Inconsistent directory lookup of executable in dejagnu.exp/host_execute Resent-From: Jacob Bachmeyer Original-Sender: "Debbugs-submit" Resent-CC: bug-dejagnu@gnu.org Resent-Date: Wed, 18 Nov 2020 03:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44712 X-GNU-PR-Package: dejagnu X-GNU-PR-Keywords: To: reetnem@mac.com, 44712@debbugs.gnu.org Cc: 44712-done@debbugs.gnu.org X-Debbugs-Original-To: Robert Menteer , Robert Menteer via Bug-dejagnu Reply-To: jcb62281@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.160567189422645 (code B ref -1); Wed, 18 Nov 2020 03:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Nov 2020 03:58:14 +0000 Received: from localhost ([127.0.0.1]:33613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbl-0005tB-OE for submit@debbugs.gnu.org; Tue, 17 Nov 2020 22:58:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:53308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbk-0005t4-Vk for submit@debbugs.gnu.org; Tue, 17 Nov 2020 22:58:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfEbk-0004Ru-Ky for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 22:58:12 -0500 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]:40941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfEbi-000097-Ub for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 22:58:12 -0500 Received: by mail-oo1-xc30.google.com with SMTP id t142so79725oot.7 for ; Tue, 17 Nov 2020 19:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=SFU4TUbR5EckB/yZaJUnPRxtPpcY1JWq9ZbkzI6gYGg=; b=be2qSmp3CA0/igw3ywVLifXX714GaTQs69i2J6rVEPFOY6eJv11iee6VDyMf+11SgE gvldtd2irqBUuBarOYKiOhZCTa705B+4QchbKj1KF25BeaMxW5STw4pT7rC8Juo1hxYy 9XNMBV6FykeBPKXoTiBDwms7AEBTQowkvhGag2eMRciItlO7gj3A8m2yMYgUkb6BWxlY /yx8R8NpofXjs3COelgspUK37E8cSACiAVYxm0eWs0CEx4zs1uvnp1Nc2gwcP4srYskW FXN1SefcUxQDVzqSnYDdLUmhXtkMpu4p/Jf1ASlWEUePeTqfaydKDSTOcZMamewFHB5Q OegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to :content-transfer-encoding; bh=SFU4TUbR5EckB/yZaJUnPRxtPpcY1JWq9ZbkzI6gYGg=; b=lm6OBbcnHDYi5tZjIDLzN7sp078hpft3DtQ1CGkO1hpNq01jbl+UM6MpavI2kcayvN 1JQnI46/sVrodfysA5fKtaY/nXI9/mzGjF5nFbppC2ymkOJjxANMZbrM6NY/0Ff9J79q O1i7hmGySlAsvNzNrPtmAqc2h7p0RrYiPlmZcIEtAXlYMMw2g6sJo+tnKeuzSpoO7qqa 9GKctPCbDn4CTcU2CFiLV4cozLkj9mt6QCfftLGSosMzOJvFHWGWGW0kYXoMxohc/f8K 00xC6NeKKN8pHrc9JMx0BWfh5yeNaZcU2gArkUJWZxAZViAOoHlzhoHJd5klSu9Hhp6G zsOg== X-Gm-Message-State: AOAM530b4AdHn3YzxC/eALdHEtGGyJC7xWIWEBbZVSDPvQdI/I+u1Wdm I1BzQ6k4B5V3Qyy8ijqZkCY= X-Google-Smtp-Source: ABdhPJywVweLVKA5XaEJo7vIRtsHreZ/ZlppxNLDJLRcBGSxnmsciBpl00wOFVroGGeUye6dFz4A7A== X-Received: by 2002:a4a:6b54:: with SMTP id h20mr5294207oof.53.1605671889838; Tue, 17 Nov 2020 19:58:09 -0800 (PST) Received: from [192.168.2.42] (adsl-70-133-144-11.dsl.ablntx.sbcglobal.net. [70.133.144.11]) by smtp.gmail.com with ESMTPSA id m18sm1593902oop.15.2020.11.17.19.58.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2020 19:58:09 -0800 (PST) Message-ID: <5FB49BD0.8030806@gmail.com> Date: Tue, 17 Nov 2020 21:58:08 -0600 From: Jacob Bachmeyer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::c30; envelope-from=jcb62281@gmail.com; helo=mail-oo1-xc30.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Robert Menteer via Bug-dejagnu via wrote: > This is because the lookup of the executable is done using: > > if {![file exists ${executable}]} > > And the executing is done using: > > spawn -noecho "*_./_*$executable" ${params} > > Please make the usage of $executable consistent and document how > host_execute should be called. The code you are complaining about was fixed in commit 89f58b27832f8fc7b443988d02e56cfaba12eb5a as part of support for regression testing for bug#42399 and documentation for host_execute was added in the node "Running unit tests" in commit aa173cea24b94d3f714f07bbbfda85740e8e77db. These will be in 1.6.3. Closing report as already fixed; not in current master. -- Jacob From unknown Mon Aug 18 00:07:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Robert Menteer Subject: bug#44712: closed (Re: bug#44712: Inconsistent directory lookup of executable in dejagnu.exp/host_execute) Message-ID: References: <5FB49BD0.8030806@gmail.com> X-Gnu-PR-Message: they-closed 44712 X-Gnu-PR-Package: dejagnu Reply-To: 44712@debbugs.gnu.org Date: Wed, 18 Nov 2020 03:59:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1605671943-22731-1" This is a multi-part message in MIME format... ------------=_1605671943-22731-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44712: Inconsistent directory lookup of executable in dejagnu.exp/host_exe= cute which was filed against the dejagnu package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44712@debbugs.gnu.org. --=20 44712: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44712 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1605671943-22731-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44712-done) by debbugs.gnu.org; 18 Nov 2020 03:58:18 +0000 Received: from localhost ([127.0.0.1]:33616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbq-0005tR-1y for submit@debbugs.gnu.org; Tue, 17 Nov 2020 22:58:18 -0500 Received: from mail-oo1-f48.google.com ([209.85.161.48]:35611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbn-0005sy-Nl for 44712-done@debbugs.gnu.org; Tue, 17 Nov 2020 22:58:16 -0500 Received: by mail-oo1-f48.google.com with SMTP id y3so87891ooq.2 for <44712-done@debbugs.gnu.org>; Tue, 17 Nov 2020 19:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=SFU4TUbR5EckB/yZaJUnPRxtPpcY1JWq9ZbkzI6gYGg=; b=be2qSmp3CA0/igw3ywVLifXX714GaTQs69i2J6rVEPFOY6eJv11iee6VDyMf+11SgE gvldtd2irqBUuBarOYKiOhZCTa705B+4QchbKj1KF25BeaMxW5STw4pT7rC8Juo1hxYy 9XNMBV6FykeBPKXoTiBDwms7AEBTQowkvhGag2eMRciItlO7gj3A8m2yMYgUkb6BWxlY /yx8R8NpofXjs3COelgspUK37E8cSACiAVYxm0eWs0CEx4zs1uvnp1Nc2gwcP4srYskW FXN1SefcUxQDVzqSnYDdLUmhXtkMpu4p/Jf1ASlWEUePeTqfaydKDSTOcZMamewFHB5Q OegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to :content-transfer-encoding; bh=SFU4TUbR5EckB/yZaJUnPRxtPpcY1JWq9ZbkzI6gYGg=; b=EeaddrkObWTG66qUbFbIJ3yjP2eAunEu9UexmnMqL0ns/uUihthxjajgQihwKLW5vv XGfC0vBYAlnMs6j3u80RmMawo8cIgN9l82ua7+tKIKZgEL3kUSBpUoOt7cWqQOhY3Y1+ dzPCUa3GQhuD9tRvuvlZW3OgFMSvH8gpwMmvc/2DcKnpgBOboXNGVk7Col1rm0QwXw2O 4Y0ds8trP3sDTYQHLylQOxYkKWimKV315rRgDrJ+gfWgNsj18pkGGC5eXhFp8ptxYZWD 6SOK/lzFjUmMR2mo/Dt2pDnuG4KM1gLyTeFKXPYcfFU3P5ushNiKhBRN/aIbozPNSWxL bgAw== X-Gm-Message-State: AOAM533k5P3QobdweMVmqpELzxlBb6BXa28HNaN9Bozl2NEoAXSF2d75 JQLfn78BhjRceIG3sNDNVbU= X-Google-Smtp-Source: ABdhPJywVweLVKA5XaEJo7vIRtsHreZ/ZlppxNLDJLRcBGSxnmsciBpl00wOFVroGGeUye6dFz4A7A== X-Received: by 2002:a4a:6b54:: with SMTP id h20mr5294207oof.53.1605671889838; Tue, 17 Nov 2020 19:58:09 -0800 (PST) Received: from [192.168.2.42] (adsl-70-133-144-11.dsl.ablntx.sbcglobal.net. [70.133.144.11]) by smtp.gmail.com with ESMTPSA id m18sm1593902oop.15.2020.11.17.19.58.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2020 19:58:09 -0800 (PST) Message-ID: <5FB49BD0.8030806@gmail.com> Date: Tue, 17 Nov 2020 21:58:08 -0600 From: Jacob Bachmeyer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Robert Menteer , Robert Menteer via Bug-dejagnu Subject: Re: bug#44712: Inconsistent directory lookup of executable in dejagnu.exp/host_execute References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 44712-done Cc: 44712-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jcb62281@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Robert Menteer via Bug-dejagnu via wrote: > This is because the lookup of the executable is done using: > > if {![file exists ${executable}]} > > And the executing is done using: > > spawn -noecho "*_./_*$executable" ${params} > > Please make the usage of $executable consistent and document how > host_execute should be called. The code you are complaining about was fixed in commit 89f58b27832f8fc7b443988d02e56cfaba12eb5a as part of support for regression testing for bug#42399 and documentation for host_execute was added in the node "Running unit tests" in commit aa173cea24b94d3f714f07bbbfda85740e8e77db. These will be in 1.6.3. Closing report as already fixed; not in current master. -- Jacob ------------=_1605671943-22731-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Nov 2020 19:15:36 +0000 Received: from localhost ([127.0.0.1]:32955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6S0-0003Zm-1p for submit@debbugs.gnu.org; Tue, 17 Nov 2020 14:15:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:60620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf6Ry-0003Zf-EW for submit@debbugs.gnu.org; Tue, 17 Nov 2020 14:15:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6Ry-0002ba-76 for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 14:15:34 -0500 Received: from st43p00im-zteg10062001.me.com ([17.58.63.166]:44149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6Rv-0008BQ-MR for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 14:15:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1605640527; bh=yFGdBdZRy7L57v/B5q8LKfBQ9WeJQGMVViw7Nq3qcjQ=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=qdxJHAdoYP50ycTk49BG/FXKcVVwSIQndCtCnJWbSPXYPDippNAi7MbOuri251bLR LQFNj27qen7izvUQOm8JFUmemMf7P8syl6R++UDCyqqO75Ok+JCgFzAKBZC2qUeTU7 yaOnjAccwR0bie5imt0ORnNj1u6tPURPWGOqR9OQHBBIYgdvSjste97jm1DYjqEtr6 LPc4nILBohK2WfrmWh7okeOFTnD+b+3FqPB+I4Rl3+gzjZSjxJ1jh8msXe6BcC3yP2 eOuuUIcdecnATMdnQG+GpNdCOVl5Tq7Z05vXthT5ezkhJz1uWIX9mm2BpE6nN3nzMg PAdCV2Hly4M2Q== Received: from [192.168.0.18] (nc-71-50-141-172.dyn.embarqhsd.net [71.50.141.172]) by st43p00im-zteg10062001.me.com (Postfix) with ESMTPSA id A35876C09EB for ; Tue, 17 Nov 2020 19:15:26 +0000 (UTC) From: Robert Menteer Content-Type: multipart/alternative; boundary="Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Inconsistent directory lookup of executable in dejagnu.exp/host_execute Message-Id: Date: Tue, 17 Nov 2020 14:15:25 -0500 To: Robert Menteer via Bug-dejagnu X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-17_07:2020-11-17, 2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=752 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2011170139 Received-SPF: pass client-ip=17.58.63.166; envelope-from=reetnem@mac.com; helo=st43p00im-zteg10062001.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 14:15:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If you call =E2=80=98host_execute /fullpath/testsuite/unit-test/unit=E2=80= =99, host_execute can find the unit test but not execute it. If you call =E2=80=98host_execute /testsuite/unit-test/unit=E2=80=99, = host_execute can=E2=80=99t find the unit test (but could execute it). If you call =E2=80=98host_execute testsuite/unit-test/unit=E2=80=99, = host_execute works. This is because the lookup of the executable is done using: if {![file exists ${executable}]}=20 And the executing is done using: spawn -noecho "./$executable" ${params} Please make the usage of $executable consistent and document how = host_execute should be called.= --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 If = you call =E2=80=98host_execute /fullpath/testsuite/unit-test/unit=E2=80=99= , host_execute can find the unit test but not execute it.

If you call = =E2=80=98host_execute /testsuite/unit-test/unit=E2=80=99, host_execute = can=E2=80=99t find the unit test (but could execute it).

If you call = =E2=80=98host_execute testsuite/unit-test/unit=E2=80=99, host_execute = works.

This is = because the lookup of the executable is done using:

if = {![file exists ${executable}]} 

And the executing is = done using:

spawn -noecho "./$executable" ${params}

Please make the usage of = $executable consistent and document how host_execute should be = called.
= --Apple-Mail=_AD475C13-1815-423B-A27E-C6B4C01C6ABE-- ------------=_1605671943-22731-1--