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
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.errorparsers.xlc.tests;
13
import junit.framework.TestCase;
15
import org.eclipse.cdt.core.IMarkerGenerator;
18
public class TestOperModi extends TestCase {
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
26
public void testparseLine()
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));
35
public TestOperModi( String name)
38
err_msg = "\"temp9.c\", line 13.9: 1506-025 (S) " +
39
"Operand must be a modifiable lvalue.";
b'\\ No newline at end of file'