Skip test on Xcode only systems

This commit is contained in:
Adam Vandenberg 2013-06-26 09:45:32 -07:00
parent 3abd9455a3
commit f4f54b79b7

View File

@ -10,6 +10,10 @@ class UtilTests < Test::Unit::TestCase
end end
def test_arch_for_command def test_arch_for_command
# /usr/bin/svn only exists if the command-line tools are installed
# Skip test on Xcode only systems
return unless File.exist? '/usr/bin/svn'
archs = archs_for_command '/usr/bin/svn' archs = archs_for_command '/usr/bin/svn'
if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7 if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
assert_equal 2, archs.length assert_equal 2, archs.length