summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-16 21:39:31 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-16 21:39:31 +0000
commitd5bd1bc50730a42f16d3ed23a435d219c0bec3a6 (patch)
treef7969ee06f222370e230eb6d279835ad856cd3ba /test/puppet
parenta4562bfba94d18da54ad9560245d0669cc151c76 (diff)
downloadpuppet-d5bd1bc50730a42f16d3ed23a435d219c0bec3a6.tar.gz
puppet-d5bd1bc50730a42f16d3ed23a435d219c0bec3a6.tar.xz
puppet-d5bd1bc50730a42f16d3ed23a435d219c0bec3a6.zip
Mostly fixing exec so it either captures stderr or runs as a user; Process.euid was not working correctly
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@743 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppet')
-rwxr-xr-xtest/puppet/utiltest.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/puppet/utiltest.rb b/test/puppet/utiltest.rb
index e18971e59..dbcd7e40f 100755
--- a/test/puppet/utiltest.rb
+++ b/test/puppet/utiltest.rb
@@ -13,6 +13,7 @@ class TestPuppetUtil < Test::Unit::TestCase
unless Process.uid == 0
$stderr.puts "Run as root to perform Utility tests"
else
+
def mknverify(file, user, group = nil, id = false)
if File.exists?(file)
File.unlink(file)
@@ -114,11 +115,6 @@ class TestPuppetUtil < Test::Unit::TestCase
assert(Process.euid == 0, "UID did not get reset")
end
end
-
- def test_capturestderr
- str = Puppet::Util.capture_stderr { $stderr.puts("hello world") }
- assert_equal("hello world\n", str)
- end
end
# $Id$