From 75de44c2a5a62dace0c4187b5b39211f82b5ba2f Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sun, 23 May 2010 23:16:41 -0400 Subject: [PATCH] alarms: new test case for interrupt race --- basis/alarms/alarms-tests.factor | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/basis/alarms/alarms-tests.factor b/basis/alarms/alarms-tests.factor index 715d51e4fa..ffba05bccc 100644 --- a/basis/alarms/alarms-tests.factor +++ b/basis/alarms/alarms-tests.factor @@ -37,3 +37,10 @@ IN: alarms.tests [ stop-alarm ] [ start-alarm ] bi 4 seconds sleep ] unit-test + +[ { 0 } ] [ + { 0 } + dup '[ 3 seconds sleep 1 _ set-first ] 1 seconds later + 2 seconds sleep stop-alarm + 1/2 seconds sleep +] unit-test