From 887f7514a40b53baf98f0e766e163842dae6a126 Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Fri, 25 Apr 2014 16:34:32 +0900 Subject: [PATCH] fix test pid to use os.Getpid() --- process_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process_test.go b/process_test.go index 302cc49..f6c5595 100644 --- a/process_test.go +++ b/process_test.go @@ -5,6 +5,7 @@ import ( "fmt" "runtime" "testing" + "os" ) func Test_Pids(t *testing.T) { @@ -49,7 +50,7 @@ func Test_NewProcess(t *testing.T) { } func Test_Process_memory_maps(t *testing.T) { - check_pid := 19472 + check_pid := os.Getpid() if runtime.GOOS == "windows" { check_pid = 0 }