diff options
author | Miguel de Icaza <miguel@gnome.org> | 2009-05-14 20:50:42 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2009-05-14 20:50:42 +0400 |
commit | d77da8aa8f8702ae1edb1f36922bc1ca6abcf538 (patch) | |
tree | 87bfc90d347d74b631905118335b68420a9137d8 /scripts/mono-test-install | |
parent | b55df3bcb043c4eb8f196bbd50aecdb4b0dcd1f0 (diff) |
Add more diagnostics
svn path=/trunk/mono/; revision=134144
Diffstat (limited to 'scripts/mono-test-install')
-rwxr-xr-x | scripts/mono-test-install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/mono-test-install b/scripts/mono-test-install index 9743e601bf5..362eed4cf56 100755 --- a/scripts/mono-test-install +++ b/scripts/mono-test-install @@ -147,3 +147,32 @@ else echo Failed to compile sample System.Drawing program, your installation is broken exit 1 fi + +cat > $temp_cs <<EOF +using System; +using System.Reflection; +using System.IO; + +class Program { + + public static void Main() + { + object watcher = new FileSystemWatcher() + .GetType () + .GetField ("watcher", BindingFlags.NonPublic | BindingFlags.Static) + .GetValue (null); + + Console.WriteLine ("Your file system watcher is: {0}", + watcher != null + ? watcher.GetType ().FullName + : "unknown"); + } +} +EOF + +if mcs $temp_cs >& /dev/null; then + mono $temp_exe +else + echo Failed to compile sample test program, your installation is broken + exit 1 +fi
\ No newline at end of file |