Skip to content

Commit 3fbddb4

Browse files
committed
Try just using system-installed top.
1 parent a803c06 commit 3fbddb4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rules_haskell_tests/tests/RunTests.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ printMemoryHook action = bracket_
189189
printMemory :: String -> IO ()
190190
printMemory msg = do
191191
putStrLn msg
192-
(exitCode, stdOut, stdErr) <- Process.readProcessWithExitCode "top" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
193-
-- (exitCode, stdOut, stdErr) <- Process.readProcessWithExitCode "/usr/bin/top" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
194-
-- (exitCode, stdOut, stdErr) <- Process.readProcessWithExitCode "foo" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
195-
-- putStrLn stdOut
192+
(exitCode, stdOut, stdErr) <- Process.readProcessWithExitCode "/usr/bin/top" ["-l", "1", "-s", "0", "-o", "mem", "-n", "15"] ""
196193
case exitCode of
197194
ExitSuccess -> putStrLn stdOut
198195
ExitFailure _ -> putStrLn ("=== printMemory failed ===\n" ++ stdErr)

0 commit comments

Comments
 (0)