summaryrefslogtreecommitdiff
path: root/bootstraptest/pending.rb
blob: 2c4b85a4193d0cd83b967e4ecf10e300c440fd8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
assert_equal 'ok', %q{
  def m
    lambda{
      proc{
        return :ng1
      }
    }.call.call
    :ng2
  end

  begin
    m()
  rescue LocalJumpError
    :ok
  end
}

# This randomly fails on mswin.
assert_equal %q{[]}, %q{
  Thread.new{sleep}.backtrace
}