aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch
blob: 57a1dbeeaca73df1e0320a38eee22be0ad8e7cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 2e3dd40e215967b2cad53dcad22f75a759fea273 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Tue, 1 Jul 2014 15:51:53 +0800
Subject: [PATCH] ext/DynaLoader/t/DynaLoader.t: fix calling dl_findfile()
 failed

Use '$Config{libc}' as the libc file name

Upstream-Status: Inappropriate
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>

---
 ext/DynaLoader/t/DynaLoader.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/DynaLoader/t/DynaLoader.t b/ext/DynaLoader/t/DynaLoader.t
index 7fe30b3..3da2ada 100644
--- a/ext/DynaLoader/t/DynaLoader.t
+++ b/ext/DynaLoader/t/DynaLoader.t
@@ -111,7 +111,7 @@ ok( defined $dlerr, "dl_error() returning an error message: '$dlerr'" );
 # ... dl_findfile()
 SKIP: {
     my @files = ();
-    eval { @files = DynaLoader::dl_findfile("c") };
+    eval { @files = DynaLoader::dl_findfile($Config{libc}) };
     is( $@, '', "calling dl_findfile()" );
     # Some platforms are known to not have a "libc"
     # (not at least by that name) that the dl_findfile()