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
|
f raw-profile-data set-global
|
||||||
gc
|
gc
|
||||||
|
|
||||||
{ t 0 } [
|
{ t t } [
|
||||||
! Seed the samples data
|
! Seed the samples data
|
||||||
[ "resource:basis/tools/memory/memory.factor" run-file ] profile
|
[ "resource:basis/tools/memory/memory.factor" run-file ] profile
|
||||||
(get-samples) length 0 >
|
(get-samples) length 0 >
|
||||||
! Should clear it
|
! On x86.64, [ ] profile doesn't generate any samples at all
|
||||||
gc [ ] profile (get-samples) length
|
! 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
|
] unit-test
|
||||||
|
|
Loading…
Reference in New Issue