tools.profiler.sampling.tests: attempt to fix the unit test that fails on x86.32 sometimes
parent
a80aeea7f9
commit
9da7863917
|
@ -17,10 +17,12 @@ TUPLE: boom ;
|
|||
f raw-profile-data set-global
|
||||
gc
|
||||
|
||||
{ t 0 } [
|
||||
{ t t } [
|
||||
! Seed the samples data
|
||||
[ "resource:basis/tools/memory/memory.factor" run-file ] profile
|
||||
(get-samples) length 0 >
|
||||
! Should clear it
|
||||
gc [ ] profile (get-samples) length
|
||||
! On x86.64, [ ] profile doesn't generate any samples at all
|
||||
! because it runs so quickly. On x86.32, one spurious sample is
|
||||
! sometimes generated for some unknown reason.
|
||||
gc [ ] profile (get-samples) length 1 <=
|
||||
] unit-test
|
||||
|
|
Loading…
Reference in New Issue