tools.profiler.sampling.tests: attempt to fix the unit test that fails on x86.32 sometimes

locals-and-roots
Björn Lindqvist 2016-05-31 22:14:18 +02:00
parent a80aeea7f9
commit 9da7863917
1 changed files with 5 additions and 3 deletions

View File

@ -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