[tests] Add the HFS+ equivalent of a memory barrier. Fixes #57831. (#2352)

https://bugzilla.xamarin.com/show_bug.cgi?id=57831
This commit is contained in:
Rolf Bjarne Kvinge 2017-07-31 17:13:08 +02:00 коммит произвёл GitHub
Родитель e6c8223a8e
Коммит 81a1d81d38
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -373,6 +373,9 @@ public class B : A {}
// The code change is minimal: only changes the class name (default: 'TestApp1' changed to 'TestApp2') to minimize the related
// changes (there should be no changes in Xamarin.iOS.dll nor mscorlib.dll, even after linking)
timestamp = DateTime.Now;
System.Threading.Thread.Sleep (1000); // make sure all new timestamps are at least a second older. HFS+ has a 1s timestamp resolution :(
// Rebuild the extension's .exe
extension.CreateTemporaryServiceExtension (extraCode: codeB);
mtouch.AssertExecute (MTouchAction.BuildDev, "change extension executable");