]> Cypherpunks repositories - gostls13.git/commit
os: embed "sleep 1" within the test binary itself.
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Sun, 8 Feb 2015 15:42:10 +0000 (07:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Feb 2015 16:50:39 +0000 (16:50 +0000)
commitafac4f0a403ec0742d68330c3f3bb97be6b187bc
treee413d8e14fa660314b9150a4f7dd3fe48b95dc1c
parent6d06d4862d4cfc7b78c8805effbc820190a004d8
os: embed "sleep 1" within the test binary itself.

This is an alternative to http://golang.org/cl/4150,
and is motivated by a review comment on that CL.

testKillProcess() tries to build and run the Go equivalent
for "sleep 1". This doesn't work for testing cross compilers
since the Go compiler is not available on the targets. This
change embeds the "sleep 1" functionality within the "os.test"
binary itself.

Change-Id: I6bad513deaa6c9e2704e70319098eb4983f1bb23
Reviewed-on: https://go-review.googlesource.com/4190
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/os_test.go