File: ets_doc_file.rb

package info (click to toggle)
ruby-libxml 2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,024 kB
  • ctags: 2,251
  • sloc: xml: 9,628; ansic: 8,409; ruby: 7,806; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# encoding: UTF-8

require './test_helper'

# This is related to bug 8337, complaint is on amd64/fbsd
# unknown if it happens on other amd64/os combos

Process.setrlimit(Process::RLIMIT_NOFILE,10005)

(1..10000).each{|time|
  XML::Document.file(File.join(File.dirname(__FILE__),'ets_test.xml'))
  if time % 100 == 0
    print "\r#{time}"  
    $stdout.flush
  end
}
puts "\n"