assertEquals("-ldart", (String) endargs.elementAt(3));
assertEquals(endargs.size(), 4);
}
public void testAddLibrarySetLibFrameworkNonDarwin() {
System.setProperty("os.name", "VAX/VMS");
AbstractLdLinker linker = getLinker();
CCTask task = new CCTask();
LibrarySet[] sets = new LibrarySet[]{new LibrarySet()};
/* throws an Exception in setLibs otherwise */
sets[0].setProject(new org.apache.tools.ant.Project());
sets[0].setDir(new File("/foo"));
LibraryTypeEnum libType = new LibraryTypeEnum();
libType.setValue("framework");
sets[0].setType(libType);
sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart"));
Vector preargs = new Vector();
Vector midargs = new Vector();
Vector endargs = new Vector();
String[] rc = linker.addLibrarySets(task, sets, preargs, midargs,
endargs);
assertEquals("-L", ((String) endargs.elementAt(0)).substring(0, 2));
// FIXME NAR-103
// BEGINFREEHEP
// assertEquals("-Bdynamic", (String) endargs.elementAt(1));