syscall: append to environment in tests, don't clobber it

This is a partial backport of
It's only a partial backport because part of the change was
already applied to libgo in CL 193497 as part of the update
to the Go 1.13beta1 release.


Change-Id: I3d37039b8df57e361b70d760aba22e71ef1cc657
Reviewed-by: Cherry Zhang <>
Reviewed-by: Than McIntosh <>
1 file changed