]> source.dussan.org Git - aspectj.git/commitdiff
-Xlint:{level} tests
authorwisberg <wisberg>
Tue, 27 May 2003 07:52:41 +0000 (07:52 +0000)
committerwisberg <wisberg>
Tue, 27 May 2003 07:52:41 +0000 (07:52 +0000)
tests/ajcTests.xml

index 9ed79f34d9e5556478451dfc665064605464b959..729122676bc9e1bacd897ab1d2afb4e1b928db85 100644 (file)
        </compile>
     </ajc-test>
 
+    <ajc-test dir="harness" 
+        title="valid XLintWarningTest file, default level of warning">
+        <compile files="XLintWarningTest.java">
+               <message kind="warning" line="5"
+                        text="Xlint:invalidAbsoluteTypeName"/> 
+        </compile>
+    </ajc-test>
+
+    <ajc-test dir="harness" 
+        title="XLint:ignore suppresses XLint warnings">
+        <compile files="XLintWarningTest.java" options="-Xlint:ignore"/>
+    </ajc-test>
+
+    <ajc-test dir="harness" 
+        title="XLint:error promotes XLint warnings to error">
+        <compile files="XLintWarningTest.java" options="-Xlint:error">
+               <message kind="error" line="5" 
+                       text="Xlint:invalidAbsoluteTypeName"/> 
+        </compile>
+    </ajc-test>
+
 </suite>