File: ProcessSpec.hs

package info (click to toggle)
haskell-unix-compat 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: ansic: 419; haskell: 334; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 266 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
module ProcessSpec (processSpec) where

import System.PosixCompat
import Test.HUnit
import Test.Hspec

processSpec :: Spec
processSpec = do
  describe "getProcessID" $ do
    it "should work on Windows and Unix" $ do
      pid <- getProcessID
      assert $ pid > 0