summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/Feature/TestAsmDisasm.sh12
-rwxr-xr-xtest/Feature/TestOptimizer.sh13
2 files changed, 23 insertions, 2 deletions
diff --git a/test/Feature/TestAsmDisasm.sh b/test/Feature/TestAsmDisasm.sh
index 0b8faef9b2..a492f8f305 100755
--- a/test/Feature/TestAsmDisasm.sh
+++ b/test/Feature/TestAsmDisasm.sh
@@ -4,7 +4,17 @@
rm -f test.bc.temp[12]
-LD_LIBRARY_PATH=$3
+#
+# Split the current LD_LIBRARY_PATH into two separate components.
+#
+FirstLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f1`
+SecondLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f2`
+
+#
+# Now create a new LD_LIBRARY_PATH with our command line options as
+# the first section.
+#
+LD_LIBRARY_PATH="$3:${FirstLDP}\;${SecondLDP}"
export LD_LIBRARY_PATH
AS=$2/as
diff --git a/test/Feature/TestOptimizer.sh b/test/Feature/TestOptimizer.sh
index 648d7168ea..10008ee111 100755
--- a/test/Feature/TestOptimizer.sh
+++ b/test/Feature/TestOptimizer.sh
@@ -1,5 +1,16 @@
#!/bin/sh
-LD_LIBRARY_PATH=$3
+
+#
+# Split the current LD_LIBRARY_PATH into two separate components.
+#
+FirstLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f1`
+SecondLDP=`echo $LD_LIBRARY_PATH | cut -d\; -f2`
+
+#
+# Now create a new LD_LIBRARY_PATH with our command line options as
+# the first section.
+#
+LD_LIBRARY_PATH="$3:${FirstLDP}\;${SecondLDP}"
export LD_LIBRARY_PATH
AS=$2/as