summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-01-18 13:57:08 -0800
committerRoland McGrath <roland@hack.frob.com>2012-01-18 13:57:08 -0800
commitb8ff18e0e8b8631fcc449cbd5a1ceba3f4a73e0d (patch)
tree126119d577722d61797647c053591c59b0b4d18d
parenta065c4b6e743968751c74f3100fc1c6af89db483 (diff)
Don't set LD_LIBRARY_PATH explicitly for command run inside test case.
-rw-r--r--tests/ChangeLog8
-rw-r--r--tests/asm-tst4.c5
-rw-r--r--tests/asm-tst5.c5
-rw-r--r--tests/asm-tst6.c5
4 files changed, 14 insertions, 9 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 507ac2bc..e54f5dd8 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,11 @@
+2012-01-18 Roland McGrath <roland@hack.frob.com>
+
+ * asm-tst4.c (main): Don't set LD_LIBRARY_PATH in system invocation;
+ it will have been inherited correctly from the test harness.
+ * asm-tst5.c (main): Likewise.
+ * asm-tst6.c (main): Likewise.
+ Reported by Serge Pavlov <serge.pavlov.at.gnu@gmail.com>.
+
2011-07-09 Roland McGrath <roland@hack.frob.com>
* sha1-tst.c: File removed.
diff --git a/tests/asm-tst4.c b/tests/asm-tst4.c
index 54d054c2..19cceb59 100644
--- a/tests/asm-tst4.c
+++ b/tests/asm-tst4.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
+/* Copyright (C) 2002-2012 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -101,8 +101,7 @@ main (void)
}
if (result == 0)
- result = WEXITSTATUS (system ("\
-env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst4-out.o"));
+ result = WEXITSTATUS (system ("../src/elflint -q asm-tst4-out.o"));
/* We don't need the file anymore. */
unlink (fname);
diff --git a/tests/asm-tst5.c b/tests/asm-tst5.c
index 2a8b3f02..09917fe6 100644
--- a/tests/asm-tst5.c
+++ b/tests/asm-tst5.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
+/* Copyright (C) 2002-2012 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -113,8 +113,7 @@ main (void)
}
if (result == 0)
- result = WEXITSTATUS (system ("\
-env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst5-out.o"));
+ result = WEXITSTATUS (system ("../src/elflint -q asm-tst5-out.o"));
/* We don't need the file anymore. */
unlink (fname);
diff --git a/tests/asm-tst6.c b/tests/asm-tst6.c
index bd6a71df..8fb9efb8 100644
--- a/tests/asm-tst6.c
+++ b/tests/asm-tst6.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
+/* Copyright (C) 2002-2012 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -147,8 +147,7 @@ main (void)
}
if (result == 0)
- result = WEXITSTATUS (system ("\
-env LD_LIBRARY_PATH=../libelf ../src/elflint -q asm-tst6-out.o"));
+ result = WEXITSTATUS (system ("../src/elflint -q asm-tst6-out.o"));
/* We don't need the file anymore. */
unlink (fname);