Project

General

Profile

Actions

Bug #12351

closed

ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)

Bug #12351: ruby-1.9.3.4 (Ubuntu): undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)

Added by jbatista (J Batista) over 9 years ago. Updated over 9 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:75373]

Description

An undefined variable in MiniTest::Unit::Runner::Worker causes rake execution to fail (status code 1) when performing tests. (Test case was running rake with code from https://github.com/blackducksoftware/ohloh_scm).

The cause is attempting to use an undefined class variable @@installed_at_exit on method autorun of class Worker. Possible solution: change

at_exit {
# ...
} unless @@installed_at_exit

to

at_exit {
# ...
} unless (defined?(@@installed_at_exit) and @@installed_at_exit)

Attachment (unit.rb.patch) is a diff patch for the affected file.

This affects Ubuntu 14.04 and related distributions (Lubuntu). Reported downstream as Ubuntu Bug 1578547.


Files

unit.rb.patch (466 Bytes) unit.rb.patch libruby1.9.1_1.9.3.484-2ubuntu1.2_i386 jbatista (J Batista), 05/05/2016 05:50 PM

Updated by hsbt (Hiroshi SHIBATA) over 9 years ago Actions #1 [ruby-core:75378]

  • Status changed from Open to Third Party's Issue

upstream repo of minitest is here https://github.com/seattlerb/minitest

Please submit your issue and patch to upstream.

Updated by nobu (Nobuyoshi Nakada) over 9 years ago Actions #2 [ruby-core:75381]

  • Description updated (diff)
Actions

Also available in: PDF Atom