Move glob tests to a run-pass test

The normal unit tests cannot change the current working directory because it
messes with the other tests which depend on a particular working directory.
auto merge of #9170 : alexcrichton/rust/flaky-fileinput, r=erickt

The glob tests cannot change the current working directory because the other tests (namely the fileinput ones) depend on the current working directory not changing.