File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,13 @@ permissions: # added using https://github.com/step-security/secure-workflows
1111 contents : read
1212
1313jobs :
14- ruby-versions :
15- uses : ruby/actions/.github/workflows/ruby_versions.yml@master
16- with :
17- # 2.7 breaks `test_parse_statements_nodoc_identifier_alias_method`
18- min_version : 3.0
19- versions : ' ["mswin"]'
20-
2114 test :
2215 needs : ruby-versions
2316 strategy :
2417 fail-fast : false
2518 matrix :
26- ruby : ${{ fromJson(needs.ruby-versions.outputs.versions) }}
27- os : [ubuntu-latest, macos-latest, windows-latest]
19+ ruby : [head]
20+ os : [windows-latest]
2821 exclude :
2922 - os : windows-latest
3023 ruby : truffleruby
Original file line number Diff line number Diff line change @@ -189,6 +189,14 @@ def test_extract_call_linear_performance
189189 end
190190 end
191191
192+ def test_testunit
193+ assert_equal 'Test::Unit::CoreAssertions::PERFORMANCE_CLOCK' , Test ::Unit ::CoreAssertions ::PERFORMANCE_CLOCK
194+ end
195+
196+ def test_testuunit_clocks
197+ assert_equal 'get PERFORMANCE_CLOCK times' , 100 . times . map { Process . clock_gettime ( PERFORMANCE_CLOCK ) }
198+ end
199+
192200 def test_clock_res
193201 clockres = %w[
194202 CLOCK_THREAD_CPUTIME_ID CLOCK_PROCESS_CPUTIME_ID
@@ -262,14 +270,14 @@ def test_clock_actual_res
262270 unless Process . clock_getres ( clk ) < 1.0e-03
263271 next # needs msec precision
264272 end
265- PERFORMANCE_CLOCK = clk
273+ THE_PERFORMANCE_CLOCK = clk
266274 end
267275 end
268276 end
269277 end
270278
271279 def test_perf_clock
272- assert_equal ( 'actual PERFORMANCE_CLOCK :' , PERFORMANCE_CLOCK )
280+ assert_equal ( 'actual THE_PERFORMANCE_CLOCK :' , THE_PERFORMANCE_CLOCK )
273281 end
274282
275283 def test_clock_actual_res_sym
You can’t perform that action at this time.
0 commit comments