Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2009-05-14 20:50:42 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-05-14 20:50:42 +0400
commitd77da8aa8f8702ae1edb1f36922bc1ca6abcf538 (patch)
tree87bfc90d347d74b631905118335b68420a9137d8 /scripts
parentb55df3bcb043c4eb8f196bbd50aecdb4b0dcd1f0 (diff)
Add more diagnostics
svn path=/trunk/mono/; revision=134144
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mono-test-install29
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