Skip to content

Commit

Permalink
Skip symbolic link demanding test on Windows
Browse files Browse the repository at this point in the history
One of the SELinux tests I wrote creates a symbolic link, to ensure
correct behaviour.  Windows Ruby doesn't support symlinks, and so failed; this
test can simply be skipped on that platform.

Signed-off-by: Daniel Pittman <[email protected]>
  • Loading branch information
Daniel Pittman committed Sep 11, 2012
1 parent ac7f5f1 commit 81c8afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/util/selinux_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.is_selinux_enabled
selinux_label_support?('/mnt/nfs/testfile').should be_false
end

it "(#8714) don't follow symlinks when determining file systems" do
it "(#8714) don't follow symlinks when determining file systems", :unless => Puppet.features.microsoft_windows? do
scratch = Pathname(PuppetSpec::Files.tmpdir('selinux'))

self.stubs(:read_mounts).returns({
Expand Down

0 comments on commit 81c8afa

Please sign in to comment.