~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2006, 2010 IBM Corporation and others.
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *     IBM Corporation - initial API and implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.errorparsers.xlc.tests;
 
12
 
 
13
import junit.framework.TestCase;
 
14
 
 
15
import org.eclipse.cdt.core.IMarkerGenerator;
 
16
 
 
17
 
 
18
public class TestOperModi extends TestCase {
 
19
        String err_msg;
 
20
        /**
 
21
         * This function tests parseLine function of the
 
22
         * XlcErrorParser class. Error message generated by
 
23
         * xlc compiler with high severity (S) is given as 
 
24
         * input for testing.  
 
25
         */
 
26
        public void testparseLine()
 
27
        {
 
28
                XlcErrorParserTester aix = new XlcErrorParserTester();
 
29
                aix.parseLine(err_msg);
 
30
                assertEquals("temp9.c", aix.getFileName(0));
 
31
                assertEquals(13, aix.getLineNumber(0));
 
32
                assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
 
33
                assertEquals("Operand must be a modifiable lvalue.",aix.getMessage(0));
 
34
        }
 
35
        public TestOperModi( String name)
 
36
        {
 
37
                super(name);
 
38
                err_msg = "\"temp9.c\", line 13.9: 1506-025 (S) " + 
 
39
                                        "Operand must be a modifiable lvalue.";
 
40
        }
 
41
}
 
 
b'\\ No newline at end of file'