aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-08-10 11:30:18 -0500
committerPeter Seebach <seebs@laptop-seebs-net.local>2010-08-11 14:38:11 -0500
commit5d027f78a6e677e9272a17555a83124026e6fb08 (patch)
treed82c988b997f8889734d09ce72dd7433a353ef50 /test
parenta6a473ab1bac9c4b11049653f3b344d827c380c5 (diff)
downloadpseudo-5d027f78a6e677e9272a17555a83124026e6fb08.tar.gz
pseudo-5d027f78a6e677e9272a17555a83124026e6fb08.tar.bz2
pseudo-5d027f78a6e677e9272a17555a83124026e6fb08.zip
Enable local variable cache
Add local variable cache via get_value and set_value. The local cache is setup at constructor time (or soon after). Rewrite the pseudo_setupenv and pseudo_dropenv routines, add a new pseudo_setupenvp and pseudo_dropenvp as well to handle the execve cases. We can now successfully use /usr/bin/env -i env and get pseudo values back!
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-env_i.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-env_i.sh b/test/test-env_i.sh
new file mode 100755
index 0000000..c38cf1d
--- /dev/null
+++ b/test/test-env_i.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+env -i A=A B=B C=C env | grep -q "PSEUDO_"
+
+if [ "$?" = "0" ]
+then
+ #echo "Passed."
+ exit 0
+fi
+#echo "Failed"
+exit 1