[project @ 2001-08-22 12:24:41 by simonmar]
[ghc-hetmet.git] / ghc / tests / lib / posix / posix010.hs
diff --git a/ghc/tests/lib/posix/posix010.hs b/ghc/tests/lib/posix/posix010.hs
deleted file mode 100644 (file)
index 83d5f27..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-import Posix
-
-main =
-    getUserEntryForName "sof"     >>= \ sof ->
-    getUserEntryForName "partain" >>= \ partain ->
-    putStr (ue2String sof) >>
-    putChar '\n' >>    
-    putStr (ue2String partain) >>
-    putChar '\n' >>    
-    getUserEntryForID (userID sof) >>= \ muid ->
-    getUserEntryForID (userID partain) >>= \ puid ->
-    putStr (ue2String muid) >>
-    putChar '\n' >>    
-    putStr (ue2String puid) >>
-    putChar '\n'
-
-ue2String ue =
-    name ++ (':' : (show uid) ++ (':' : (show gid) ++ (':' : home ++ (':' : shell))))
-  where
-    name = userName ue
-    uid = userID ue
-    gid = userGroupID ue
-    home = homeDirectory ue
-    shell = userShell ue