From patchwork Mon Jul 30 18:04:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Sobolev X-Patchwork-Id: 951254 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="P3G4SNuM"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41fSC11KsNz9ryl for ; Tue, 31 Jul 2018 04:04:43 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 8C2491006F; Mon, 30 Jul 2018 20:04:37 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.47.9]) by helium.openadk.org (Postfix) with ESMTPS id C0F221006F for ; Mon, 30 Jul 2018 20:04:35 +0200 (CEST) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 7CE3724E070D for ; Mon, 30 Jul 2018 11:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1532973873; bh=EkaREPGXeKDSHVI7OSBSglx2GCdhepJAJzvIrZAerfs=; h=From:To:Cc:Subject:Date:From; b=P3G4SNuMiGf9PuwSKnY7RXaPCtRWV5unDJWKTpqdt412gHJ2YAQtRHT80fJXK7Vyk 30V2Nl2n2WW1JNvuLWPRZG2NuTdOjNP/bn163a8nGsA5Q/qtdJ3Z8eQLiEDez9lOzX ByoUSbqbowe/EblSDrS8fjJEsa7cGkgJ4eiilJvfVI+X/4xbwbR3HL8uk0DBSvO4ij d0Xj4Bp7Ox0wnMHwJQUxqogU2CSg7iMz7r49mLirn08wNgRztyIWvzgmhUNFLdHHnT r8ALscSynULWnUoSvyv0q+hj9HWwUtJuceG17wOAk+442UOqQjz/aF71ED6gODNiPI UduFL4pz/7UoQ== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 03A8A51FD; Mon, 30 Jul 2018 11:04:31 -0700 (PDT) From: Nikita Sobolev To: devel@uclibc-ng.org Date: Mon, 30 Jul 2018 21:04:28 +0300 Message-Id: <20180730180428.30846-1-Nikita.Sobolev@synopsys.com> X-Mailer: git-send-email 2.16.2 Cc: Alexey.Brodkin@synopsys.com, Eugeniy.Paltsev@synopsys.com Subject: [uclibc-ng-devel] [PATCH] Fix path to file libtest31.so X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" From: Nikita Sobolev Test failed with error 'Could not open libtest31.so: File not found'. dlopen function is trying to find libtest31.so in the same directory where the test is run. But libtest31.so is lockated in testlib directory. So fix changes the path to library. Signed-off-by: Nikita Sobolev --- test/dlopen/tst-origin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dlopen/tst-origin.c b/test/dlopen/tst-origin.c index 60fcd3f..e456f1e 100644 --- a/test/dlopen/tst-origin.c +++ b/test/dlopen/tst-origin.c @@ -12,13 +12,13 @@ int main(int argc, char **argv) { int __attribute__((unused))(*mydltest)(const char *s); char *error; - h1 = dlopen ("libtest31.so", RTLD_LAZY); + h1 = dlopen ("testlib/libtest31.so", RTLD_LAZY); if (!h1) { fprintf(stderr, "Could not open libtest31.so: %s\n", dlerror()); exit(1); } - h2 = dlopen ("libtest31.so", RTLD_NOLOAD); + h2 = dlopen ("testlib/libtest31.so", RTLD_NOLOAD); if (!h2) { fprintf(stderr, "Could not open libtest31.so(RTLD_NOLOAD): %s\n", dlerror()); exit(1);