Sha256: f730b2526549ac775d2dfeab2daa3d83297a80f232c0bc5252491a08c688dde3

Contents?: true

Size: 331 Bytes

Versions: 12

Compression:

Stored size: 331 Bytes

Contents

require 'thread'

task_names = (1...100).map { |n| n.to_s }
order_invoked = []
mutex = Mutex.new

task_names.each { |task_name|
  task task_name do
    mutex.synchronize {
      order_invoked.push(task_name)
    }
  end
}

task :default => seq[*task_names] do
  unless order_invoked == task_names
    raise "seq failed"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
drake-0.8.2.1.0.6 test/Rakefile.seq
drake-0.8.2.0.0.2 test/Rakefile.seq
drake-0.8.2.1.0.10 test/Rakefile.seq
drake-0.8.2.1.0.11 test/Rakefile.seq
drake-0.8.2.1.0.12 test/Rakefile.seq
drake-0.8.2.1.0.13 test/Rakefile.seq
drake-0.8.2.1.0.3 test/Rakefile.seq
drake-0.8.2.1.0.4 test/Rakefile.seq
drake-0.8.2.1.0.5 test/Rakefile.seq
drake-0.8.2.1.0.7 test/Rakefile.seq
drake-0.8.2.1.0.9 test/Rakefile.seq
drake-0.8.3.1.0.14 test/Rakefile.seq