]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't set LD_LIBRARY_PATH explicitly for command run inside test case.
authorRoland McGrath <roland@hack.frob.com>
Wed, 18 Jan 2012 21:57:08 +0000 (13:57 -0800)
committerRoland McGrath <roland@hack.frob.com>
Wed, 18 Jan 2012 21:57:08 +0000 (13:57 -0800)
tests/ChangeLog
tests/asm-tst4.c
tests/asm-tst5.c
tests/asm-tst6.c

index 507ac2bcfdbdda0ae79f7933af7043b45160703f..e54f5dd8e3e12a723aa0e15488885d507d97a800 100644 (file)
@@ -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.
index 54d054c2dbea7ee59be70e03e03ec46bbb3cf51a..19cceb591b99cfa055f9a831b4d12526f9fef0fc 100644 (file)
@@ -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);
index 2a8b3f0255538ec0e7ed887a407c1a90369aad8e..09917fe63995f876be3ed64dbf71e1cddea297ce 100644 (file)
@@ -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);
index bd6a71df671d5f3509d7e75ff0cd353ab3f11190..8fb9efb826e283531c277a6ab4d1e2c373f60564 100644 (file)
@@ -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);