Skip to content

Commit 42fc797

Browse files
committed
io-sim-por test: trace TVar's value
1 parent 04158c0 commit 42fc797

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io-sim/test/Test/Control/Monad/IOSimPOR.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ runTasks :: Compare -> [Task] -> IOSim s (Int,Int)
318318
runTasks cmp tasks = do
319319
let m = maximum [maxTaskValue t | Task t <- tasks]
320320
r <- newTVarIO m
321+
traceTVarIO r (\_ a -> return (TraceString (show a)))
321322
t <- newTVarIO []
322323
exploreRaces
323324
ts <- mapM (interpret cmp r t) (zip [1..] tasks)

0 commit comments

Comments
 (0)