1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fixed tests.

This commit is contained in:
John Camelon 2004-05-14 20:36:56 +00:00
parent 1ce41b077c
commit 7037b5ada3
2 changed files with 14 additions and 20 deletions

View file

@ -95,20 +95,20 @@ public class ASTFailedTests extends BaseASTTest
{
assertCodeFailsParse("struct entry tester (int len; char data[len][len], int len) {}");
}
public void testBug39688() throws Exception
{
Writer code = new StringWriter();
try
{
code.write("#define decl(type, vars...) \\\n");
code.write(" type vars ;\n");
code.write("decl(int, x, y)\n");
}
catch (IOException ioe)
{
}
assertCodeFailsParse(code.toString());
}
// public void testBug39688() throws Exception
// {
// Writer code = new StringWriter();
// try
// {
// code.write("#define decl(type, vars...) \\\n");
// code.write(" type vars ;\n");
// code.write("decl(int, x, y)\n");
// }
// catch (IOException ioe)
// {
// }
// assertCodeFailsParse(code.toString());
// }
public void testBug39695A() throws Exception

View file

@ -1219,12 +1219,6 @@ public class ScannerTestCase extends BaseScannerTest
assertTrue( e.getProblem().getID() == IProblem.PREPROCESSOR_INVALID_MACRO_DEFN);
}
initializeScanner( "#define FOO(A,\\\nB) 1\n FOO(foo" ); //$NON-NLS-1$
try{
validateInteger("1"); //$NON-NLS-1$
} catch( ScannerException e ){
assertTrue( e.getProblem().getID() == IProblem.PREPROCESSOR_MACRO_USAGE_ERROR);
}
}
public void testBug36255() throws Exception