Reenable the windoze check since this doest not seem to be cause of jenkins test failure of TestShell

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1095470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-04-20 18:11:48 +00:00
parent 6385b39cf4
commit e86ab796f0
1 changed files with 6 additions and 6 deletions

View File

@ -17,13 +17,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
#require 'rbconfig'
require 'rbconfig'
module IRB
# WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
# Map the '/dev/null' according to the runing platform
# Under Windows platform the 'dev/null' is not fully compliant with unix,
# and the 'NUL' object need to be use instead.
WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
# Subclass of IRB so can intercept methods
class HIRB < Irb
@ -37,8 +34,11 @@ module IRB
# happen is the shell exiting because of failed IRB construction with
# no error (though we're not blanking STDERR)
begin
# Map the '/dev/null' according to the runing platform
# Under Windows platform the 'dev/null' is not fully compliant with unix,
# and the 'NUL' object need to be use instead.
devnull = "/dev/null"
#devnull = "NUL" if WINDOZE
devnull = "NUL" if WINDOZE
f = File.open(devnull, "w")
$stdout = f
super