From 890d7e4e8b1f5a604a6407a0bd7a00c65d6ee955 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Tue, 7 Feb 2012 20:44:53 -0600 Subject: [PATCH] Adjust test inclusion based on FFI platform to only run mach tests on mac. --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 98bae9b..9bac9af 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,7 @@ require 'rake/extensiontask' require 'rake/testtask' require 'rubygems/package_task' +require 'ffi' def gemspec @gemspec ||= eval(File.read('process_shared.gemspec'), binding, 'process_shared.gemspec') @@ -14,7 +15,11 @@ desc 'Run the tests' task :default => [:test] Rake::TestTask.new(:test => [:compile]) do |t| - t.pattern = 'spec/process_shared/**/*_spec.rb' + if FFI::Platform.mac? + t.pattern = 'spec/**/*_spec.rb' # only include mach tests on mac + else + t.pattern = 'spec/process_shared/**/*_spec.rb' + end t.libs.push 'spec' end