* compiler-tester.cs: Better -warnaserror detection.
svn path=/trunk/mcs/; revision=118019
+2008-11-05 Marek Safar <marek.safar@gmail.com>
+
+ * compiler-tester.cs: Better -warnaserror detection.
+
2008-10-01 Marek Safar <marek.safar@gmail.com>
* compiler-tester.cs: Fixed broken value type test.
is_warning = false;
if (compiler_options != null) {
foreach (string s in compiler_options) {
- if (s.EndsWith ("warnaserror"))
+ if (s.StartsWith ("-warnaserror") || s.StartsWith ("/warnaserror"))
is_warning = true;
}
}