auto merge of #500 : alexcrichton/cargo/fix-flaky-test, r=brson
auto merge of #500 : alexcrichton/cargo/fix-flaky-test, r=brson

This test has been flaky on the bots for quite some time now, and the cause has
now been discovered. The root cause of the failure is that the execve for the
`cargo --list` command was failing with ETXTBUSY. In querying the manpage, this
means:

    Executable was open for writing by one or more processes.

This error can be explained by the following trace:

1. Thread A, running the `cargo --list` test, opens the destination executable
   for writing because it's copying the current executable into a different
   location.
2. Thread B, some other test, forks the process. The file descriptor of the
   destination executable of thread A is now duplicated in this process.
3. Thread A closes all files and such, and then goes to fork/exec
   `cargo --list`.
4. Thread B has not had time to close all its descriptors. so it still has the
   executable open for writing, causing the `execve` of thread A to fail.

This commit just removes these tested portions of the test, only testing that
cargo probes PATH.

ruud-v-a/cargo,rustyhorde/cargo,mark-buer/cargo,beni55/cargo,youprofit/cargo,lucab/cargo,nipunn1313/cargo,achanda/cargo,beni55/cargo,sbeckeriv/cargo,worr/cargo,mceier/cargo,wesleywiser/cargo,takkanm/cargo,frewsxcv/cargo,cesarb/cargo,eminence/cargo,Kimundi/cargo,huonw/cargo,brson/cargo,winger/cargo,apjanke/cargo,tafia/cargo,durka/cargo,Frederick888/cargo,Ticki/cargo,mneumann/cargo,frewsxcv/cargo,apjanke/cargo,indykish/cargo,blaenk/cargo,Ticki/cargo,tshepang/cargo,Gankro/cargo,akiss77/cargo,fhahn/cargo,ArtemGr/cargo,liigo/cargo,ThinTim/cargo,mneumann/cargo,fhahn/cargo,gchp/cargo,brson/cargo,tafia/cargo,worr/cargo,winger/cargo,takkanm/cargo,rustyhorde/cargo,Frederick888/cargo,mneumann/cargo,Ticki/cargo,johshoff/cargo,lucab/cargo,beni55/cargo,mneumann/cargo,pcwalton/cargo,ArtemGr/cargo,gchp/cargo,sbeckeriv/cargo,aturon/cargo,felixbuenemann/cargo,tomaka/cargo,durka/cargo,Kimundi/cargo,vyskocilm/cargo,vojtechkral/cargo,JacobHenner/cargo,aturon/cargo,tanadeau/cargo,eminence/cargo,achanda/cargo,gchp/cargo,achanda/cargo,fhahn/cargo,brson/cargo,liigo/cargo,AndiDog/cargo,akiss77/cargo,sbeckeriv/cargo,iliekturtles/cargo,huonw/cargo,vi/cargo,cesarb/cargo,johshoff/cargo,vojtechkral/cargo,vojtechkral/cargo,chris-morgan/cargo,rust-lang/cargo,eminence/cargo,worr/cargo,Dineshs91/cargo,tomaka/cargo,vyskocilm/cargo,mark-buer/cargo,durka/cargo,takkanm/cargo,youprofit/cargo,takkanm/cargo,Gankro/cargo,ruud-v-a/cargo,cmr/cargo,vi/cargo,liigo/cargo,tshepang/cargo,Kimundi/cargo,mceier/cargo,johshoff/cargo,tafia/cargo,apjanke/cargo,ThinTim/cargo,durka/cargo,cmr/cargo,Dineshs91/cargo,chris-morgan/cargo,akiss77/cargo,tsurai/cargo,vyskocilm/cargo,ThinTim/cargo,Dineshs91/cargo,tafia/cargo,AndiDog/cargo,Kimundi/cargo,wesleywiser/cargo,lucab/cargo,Turbo87/cargo,rust-lang/cargo,tafia/cargo,nipunn1313/cargo,liigo/cargo,winger/cargo,JacobHenner/cargo,shaleh/cargo,ArtemGr/cargo,ThinTim/cargo,huonw/cargo,ArtemGr/cargo,ucarion/cargo,indykish/cargo,takkanm/cargo,frewsxcv/cargo,Gankro/cargo,nipunn1313/cargo,rustyhorde/cargo,gchp/cargo,achanda/cargo,gchp/cargo,tanadeau/cargo,worr/cargo,tsurai/cargo,beni55/cargo,mceier/cargo,shaleh/cargo,vi/cargo,vojtechkral/cargo,felixbuenemann/cargo,tsurai/cargo,ruud-v-a/cargo,blaenk/cargo,tsurai/cargo,cesarb/cargo,vi/cargo,brson/cargo,vyskocilm/cargo,felixbuenemann/cargo,ArtemGr/cargo,alex/cargo,JacobHenner/cargo,apjanke/cargo,aturon/cargo,shaleh/cargo,ucarion/cargo,Dineshs91/cargo,akiss77/cargo,mark-buer/cargo,akiss77/cargo,fhahn/cargo,Kimundi/cargo,Turbo87/cargo,cmr/cargo,tanadeau/cargo,tshepang/cargo,cmr/cargo,iliekturtles/cargo,huonw/cargo,eerden/cargo,cesarb/cargo,Frederick888/cargo,blaenk/cargo,vi/cargo,eerden/cargo,rust-lang/cargo,johshoff/cargo,cmr/cargo,Turbo87/cargo,youprofit/cargo,Ticki/cargo,eminence/cargo,winger/cargo,aturon/cargo,lucab/cargo,alex/cargo,beni55/cargo,Frederick888/cargo,blaenk/cargo,JacobHenner/cargo,AndiDog/cargo,blaenk/cargo,cesarb/cargo,apjanke/cargo,alex/cargo,AndiDog/cargo,worr/cargo,chris-morgan/cargo,wesleywiser/cargo,alex/cargo,iliekturtles/cargo,mceier/cargo,indykish/cargo,youprofit/cargo,johshoff/cargo,ThinTim/cargo,indykish/cargo,ucarion/cargo,tshepang/cargo,sbeckeriv/cargo,ruud-v-a/cargo,wesleywiser/cargo,ucarion/cargo,Turbo87/cargo,felixbuenemann/cargo,vyskocilm/cargo,Turbo87/cargo,eerden/cargo,huonw/cargo,frewsxcv/cargo,eerden/cargo,iliekturtles/cargo,pcwalton/cargo,rust-lang/cargo,Gankro/cargo,frewsxcv/cargo,nipunn1313/cargo,pcwalton/cargo,youprofit/cargo,chris-morgan/cargo,liigo/cargo,winger/cargo,fhahn/cargo,ruud-v-a/cargo,felixbuenemann/cargo,shaleh/cargo,iliekturtles/cargo,mneumann/cargo,Gankro/cargo,tsurai/cargo,tomaka/cargo,AndiDog/cargo,pcwalton/cargo,Frederick888/cargo,ucarion/cargo,tanadeau/cargo,pcwalton/cargo,alex/cargo,tomaka/cargo,mark-buer/cargo,indykish/cargo,chris-morgan/cargo,mceier/cargo,Dineshs91/cargo,aturon/cargo,eerden/cargo,shaleh/cargo,rustyhorde/cargo,JacobHenner/cargo,brson/cargo,wesleywiser/cargo,Ticki/cargo,mark-buer/cargo