[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 9 Oct 2017 18:08:25 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2017 18:08:25 +0000 (20:08 +0200)
commitc9fc371e31f577834582077ab8aee7682d1985bb
tree9be03ea98a4bcd181c70ddf6691cae9e4b5a952a
parent90a68e6591fc95f86674d1c0eeee6b26dba3d999
[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)

It was writing to the current working directory before which
doesn't work on platforms where that directory is read-only.

Using the same setup/teardown methods as TypeBuilderTest we
instead create a directory in the temporary location and put
the files there.
mcs/class/corlib/Test/System.Reflection.Emit/SaveTest.cs