diff options
author | Philip Hazelden <philip.hazelden@gmail.com> | 2022-03-08 21:09:23 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-09 13:02:59 -0400 |
commit | 8fafacf7bae432fe20a46265af497b8fb42cbd1c (patch) | |
tree | 483cebf1f809ffb9adaf0732f70636e2d5bd152b /testsuite/tests/rts | |
parent | 6c6c537964c6dc9ed3e8c4a4be68b587a27a3f50 (diff) | |
download | haskell-8fafacf7bae432fe20a46265af497b8fb42cbd1c.tar.gz |
Add tests for several trace functions.
Diffstat (limited to 'testsuite/tests/rts')
-rw-r--r-- | testsuite/tests/rts/traceEvent.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/rts/traceEvent.stdout | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/rts/traceEvent.hs b/testsuite/tests/rts/traceEvent.hs index 06a2b19584..391387c6d6 100644 --- a/testsuite/tests/rts/traceEvent.hs +++ b/testsuite/tests/rts/traceEvent.hs @@ -5,6 +5,8 @@ main = do traceEventIO "testing" traceEventIO "%s" -- see #3874 traceEventIO $ replicate (maxSize + 1) 'A' + putStrLn $ traceEvent "one" "two" + putStrLn $ traceEventWith (show . length) "three" maxSize :: Int maxSize = fromIntegral (maxBound :: Word16) diff --git a/testsuite/tests/rts/traceEvent.stdout b/testsuite/tests/rts/traceEvent.stdout new file mode 100644 index 0000000000..1946f0437f --- /dev/null +++ b/testsuite/tests/rts/traceEvent.stdout @@ -0,0 +1,2 @@ +two +three |