summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/types/exec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/types/exec.rb b/test/types/exec.rb
index 782f1a871..730562a95 100755
--- a/test/types/exec.rb
+++ b/test/types/exec.rb
@@ -470,6 +470,11 @@ class TestExec < Test::Unit::TestCase
)
}
+ # Throw a check in there with our cwd and make sure it works
+ assert_nothing_raised("Could not check with a missing cwd") do
+ exec2[:unless] = "test -f /this/file/does/not/exist"
+ end
+
assert_raise(Puppet::Error) do
exec2.state(:returns).sync
end