Permalink
Browse files

Run test:cxx in rvmsudo instead of sudo because it needs Ruby libraries.

  • Loading branch information...
1 parent 1a1c46c commit 7e3a39fda7dc7b41870bace34ec1c479765a2ec2 @FooBarWidget FooBarWidget committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/cxx_tests.rb
View
@@ -220,7 +220,7 @@
command = "valgrind --dsymutil=yes --db-attach=yes --child-silent-after-fork=yes #{command}"
end
if boolean_option('SUDO')
- command = "sudo #{command}"
+ command = "#{PlatformInfo.ruby_sudo_command} #{command}"
end
if boolean_option('REPEAT')
if boolean_option('GDB')

0 comments on commit 7e3a39f

Please sign in to comment.