You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ajcHarnessTests.xml 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
  2. <!--
  3. To log unexpected results, run
  4. with -logPass -ajctestRequireKeywords=expect-fail
  5. or with -logFail -ajctestSkipKeywords=expect-fail
  6. You can also run using -traceTestsMin and scan for
  7. unexpected results:
  8. FAIL pass {title..} # expect pass, actual fail
  9. PASS fail {title..} # expect fail, actual pass
  10. Also pick out "incremental-test" keyword for incremental tests.
  11. Variant tests below:
  12. - [fork|spoon]-[out|err|Error]-[detected|ignored]
  13. - ltw-[base|jarAspectpath{-jarClasspath}]
  14. Issues:
  15. - harness not stopping after unexpected-fails completes.
  16. When exception thrown, everything cleaned up?
  17. -->
  18. <suite>
  19. <!-- disabled so skipping expect-fail causes all to pass
  20. (error emitted before test is skipped)
  21. <ajc-test dir="noSuchDir"
  22. title="fail no such directory - report as error (AjcTest specification)"
  23. keywords="expect-fail">
  24. <compile files="NoSuchFile.java"/>
  25. </ajc-test>
  26. -->
  27. <ajc-test dir="harness"
  28. title="pass 2 error">
  29. <compile files="ErrorTest.java">
  30. <message kind="error" line="5"/>
  31. <message kind="error" line="6"/>
  32. </compile>
  33. </ajc-test>
  34. <ajc-test dir="harness"
  35. title="pass 2 error, with filenames">
  36. <compile files="ErrorTest.java">
  37. <message kind="error" line="5" file="ErrorTest.java"/>
  38. <message kind="error" line="6" file="ErrorTest.java"/>
  39. </compile>
  40. </ajc-test>
  41. <ajc-test dir="harness"
  42. title="fail 2 error, with 1 bad filename"
  43. keywords="expect-fail">
  44. <compile files="ErrorTest.java">
  45. <message kind="error" line="5" file="ErrorTest.java"/>
  46. <message kind="error" line="6" file="ErrorTest2.java"/>
  47. </compile>
  48. </ajc-test>
  49. <ajc-test dir="harness"
  50. title="fail 2 error, with 2 bad filename"
  51. keywords="expect-fail">
  52. <compile files="ErrorTest.java">
  53. <message kind="error" line="5" file="ErrorTest3.java"/>
  54. <message kind="error" line="6" file="ErrorTest2.java"/>
  55. </compile>
  56. </ajc-test>
  57. <ajc-test dir="harness"
  58. title="fail 2 error, three expected"
  59. keywords="expect-fail">
  60. <compile files="ErrorTest.java">
  61. <message kind="error" line="5"/>
  62. <message kind="error" line="6"/>
  63. <message kind="error" line="8"/>
  64. </compile>
  65. </ajc-test>
  66. <ajc-test dir="harness"
  67. title="fail 2 error, one unexpected"
  68. keywords="expect-fail">
  69. <compile files="ErrorTest.java">
  70. <message kind="error" line="6"/>
  71. </compile>
  72. </ajc-test>
  73. <ajc-test dir="harness"
  74. title="fail 2 error, one with with error line wrong"
  75. keywords="expect-fail">
  76. <compile files="ErrorTest.java">
  77. <message kind="error" line="5"/>
  78. <message kind="error" line="7" text="Wrong line number"/>
  79. </compile>
  80. </ajc-test>
  81. <ajc-test dir="harness"
  82. title="fail 2 error, one with with kind wrong"
  83. keywords="expect-fail">
  84. <compile files="ErrorTest.java">
  85. <message kind="error" line="5"/>
  86. <message kind="warning" line="6"/>
  87. </compile>
  88. </ajc-test>
  89. <ajc-test dir="harness"
  90. title="pass 1 warning">
  91. <compile files="WarningTest.java">
  92. <message kind="warning" line="14"/>
  93. </compile>
  94. </ajc-test>
  95. <ajc-test dir="harness"
  96. title="fail 1 warning with kind wrong"
  97. keywords="expect-fail">
  98. <compile files="WarningTest.java">
  99. <message kind="error" line="14"/>
  100. </compile>
  101. </ajc-test>
  102. <ajc-test dir="harness"
  103. title="fail 1 warning with line wrong"
  104. keywords="expect-fail">
  105. <compile files="WarningTest.java">
  106. <message kind="warning" line="15"/>
  107. </compile>
  108. </ajc-test>
  109. <ajc-test dir="harness"
  110. title="fail checks and events, failed to specify 6 expected fails"
  111. keywords="expect-fail">
  112. <compile files="TestTesterFail.java"/>
  113. <run class="TestTesterFail"/>
  114. </ajc-test>
  115. <ajc-test dir="harness"
  116. title="fail one missing note"
  117. keywords="expect-fail">
  118. <compile files="TesterNotesFail.java"/>
  119. <run class="TesterNotesFail"/>
  120. </ajc-test>
  121. <ajc-test dir="harness"
  122. title="pass checks and events, all should pass">
  123. <compile files="TestTester.java"/>
  124. <run class="TestTester"/>
  125. </ajc-test>
  126. <ajc-test dir="harness"
  127. title="pass event files">
  128. <compile files="TestTesterFile.java"/>
  129. <run class="TestTesterFile"/>
  130. </ajc-test>
  131. <ajc-test dir="harness"
  132. title="pass compile and run, no tester required">
  133. <compile files="TestNoTester.java"/>
  134. <run class="TestNoTester" skipTester="true"/>
  135. </ajc-test>
  136. <ajc-test dir="harness/classpathTest"
  137. title="pass specify jars and directories on classpath"
  138. keywords="purejava">
  139. <compile classpath="classesDir,jars/required.jar"
  140. files="Main.java"/>
  141. <run class="Main"/>
  142. </ajc-test>
  143. <ajc-test dir="harness/classpathTest"
  144. title="pass specify aspectpath and classpath jars and directories">
  145. <compile classpath="classesDir,jars/required.jar"
  146. aspectpath="jars/requiredAspects.jar"
  147. files="AspectMain.java"/>
  148. <run class="AspectMain"/>
  149. </ajc-test>
  150. <ajc-test dir="harness/classpathTest"
  151. title="pass pure binary weaving, with jars/dir on classpath"
  152. keywords="purejava">
  153. <compile classpath="classesDir,jars/required.jar"
  154. files="Main.java"
  155. outjar="main.zip" options="-1.4"/>
  156. <compile classpath="classesDir,jars/required.jar"
  157. aspectpath="jars/requiredAspects.jar,jars/AspectMain.jar"
  158. files="main.zip" options="-1.4"/>
  159. <run class="Main"/>
  160. </ajc-test>
  161. <ajc-test dir="harness" keywords="incremental-test"
  162. title="pass minimal purejava sourceroots test">
  163. <compile sourceroots="sourceroot"/>
  164. <run class="packageOne.Main"/>
  165. </ajc-test>
  166. <ajc-test dir="harness" keywords="incremental-test"
  167. title="pass test of dual sourceroots with aspects">
  168. <compile sourceroots="sourceroot,sourceroot2"/>
  169. <run class="packageOne.Main"/>
  170. </ajc-test>
  171. <ajc-test dir="harness" keywords="incremental-test"
  172. title="pass minimal incremental purejava sourceroots test"
  173. comment="inc-22 generates new event, expected after">
  174. <compile options="-incremental"
  175. sourceroots="sourceroot-inc"/>
  176. <run class="packageOne.Main"/>
  177. <inc-compile tag="22"/>
  178. <run class="packageOne.Main"
  179. options="new-event"/>
  180. </ajc-test>
  181. <ajc-test dir="harness" keywords="incremental-test"
  182. title="pass rebuild minimal incremental purejava sourceroots test"
  183. comment="inc-22 generates new event, expected after">
  184. <compile options="-incremental"
  185. sourceroots="sourceroot-inc"/>
  186. <run class="packageOne.Main"/>
  187. <inc-compile tag="22"/>
  188. <run class="packageOne.Main"
  189. options="new-event"/>
  190. <compile options="-incremental"
  191. reuseCompiler="true"
  192. sourceroots="sourceroot-inc"/>
  193. <run class="packageOne.Main"/>
  194. <inc-compile tag="22"/>
  195. <run class="packageOne.Main"
  196. options="new-event"/>
  197. </ajc-test>
  198. <ajc-test dir="harness" keywords="incremental-test"
  199. title="pass rebuild fresh-same minimal incremental purejava sourceroots test"
  200. comment="inc-22 generates new event, expected after">
  201. <compile options="-incremental"
  202. sourceroots="sourceroot-inc"/>
  203. <run class="packageOne.Main"/>
  204. <inc-compile tag="22"/>
  205. <run class="packageOne.Main"
  206. options="new-event"/>
  207. <inc-compile tag="same" fresh="true" />
  208. <run class="packageOne.Main"
  209. options="new-event"/>
  210. </ajc-test>
  211. <ajc-test dir="harness" keywords="incremental-test"
  212. title="pass rebuild fresh-updated minimal incremental purejava sourceroots test"
  213. comment="inc-22 generates new event, expected after">
  214. <compile options="-incremental"
  215. sourceroots="sourceroot-inc"/>
  216. <run class="packageOne.Main"/>
  217. <inc-compile tag="22" fresh="true" />
  218. <run class="packageOne.Main"
  219. options="new-event"/>
  220. </ajc-test>
  221. <ajc-test dir="incremental/stringliteral"
  222. keywords="incremental-test,fixme"
  223. title="pass incrementally change only string literal size">
  224. <compile staging="true" options="-incremental"
  225. sourceroots="src"/>
  226. <run class="packageOne.Main"
  227. options="in packageOne.Main.main(..),
  228. before main packageOne.Main"/>
  229. <inc-compile tag="20">
  230. <dir-changes delay="2000" updated="packageOne.Main"/>
  231. </inc-compile>
  232. <run class="packageOne.Main"
  233. options="in longer packageOne.Main.main(..),
  234. before main packageOne.Main"/>
  235. </ajc-test>
  236. <ajc-test dir="incremental/defaultPackage/src"
  237. title="pass test using prior classes">
  238. <compile files="lib/Lib.java"/>
  239. <run class="lib.Lib"/>
  240. <compile files="Main.java" includeClassesDir="true"/>
  241. <run class="Main"/>
  242. </ajc-test>
  243. <ajc-test dir="incremental/interPackage/src"
  244. title="pass test using prior classes (inter-package)">
  245. <compile files="lib/Lib.java"/>
  246. <run class="lib.Lib"/>
  247. <compile files="app/Main.java" includeClassesDir="true"/>
  248. <run class="app.Main"/>
  249. </ajc-test>
  250. <ajc-test dir="harness/systemExit"
  251. title="pass System exit 0">
  252. <compile files="SystemExit.java"/>
  253. <run class="SystemExit"/>
  254. </ajc-test>
  255. <ajc-test dir="harness/systemExit"
  256. keywords="expect-fail"
  257. title="fail System exit 1">
  258. <compile files="SystemExit.java"/>
  259. <run class="SystemExit" options="1"/>
  260. </ajc-test>
  261. <ajc-test dir="harness/systemExit"
  262. keywords="expect-fail"
  263. title="fail System exit -1">
  264. <compile files="SystemExit.java"/>
  265. <run class="SystemExit" options="-1"/>
  266. </ajc-test>
  267. <ajc-test dir="harness/inpath"
  268. title="pass test inpath option - valid">
  269. <compile files="input-path-classes" sourceroots="aspectsrc"/>
  270. <run class="Main"/>
  271. </ajc-test>
  272. <ajc-test dir="harness"
  273. comment="Expect two warnings when compiling -1.3"
  274. title="pass 2 compound warning -1.3">
  275. <compile files="CompoundMessage.java" options="-1.3">
  276. <message kind="warning" line="6">
  277. <source line="14" file="CompoundMessage.java"/>
  278. </message>
  279. <message kind="warning" line="6">
  280. <source line="12" file="CompoundMessage.java"/>
  281. </message>
  282. </compile>
  283. </ajc-test>
  284. <ajc-test dir="harness"
  285. comment="Expect no warnings when compiling -1.4"
  286. title="pass 2 compound warning -1.4">
  287. <compile files="CompoundMessage.java" options="-1.4"/>
  288. </ajc-test>
  289. <ajc-test dir="harness/xlintfile"
  290. title="pass default xlintfile">
  291. <compile files="TypeNotExposed.java">
  292. <message kind="warning" line="4" text="xpose"/>
  293. </compile>
  294. </ajc-test>
  295. <ajc-test dir="harness/xlintfile"
  296. title="pass xlintfile promotes to error">
  297. <compile files="TypeNotExposed.java"
  298. xlintfile="tneError.properties">
  299. <message kind="error" line="4" text="xpose"/>
  300. </compile>
  301. </ajc-test>
  302. <ajc-test dir="harness/xlintfile"
  303. title="pass xlintfile demotes to ignore">
  304. <compile files="TypeNotExposed.java"
  305. xlintfile="tneIgnore.properties"/>
  306. </ajc-test>
  307. <ajc-test dir="harness"
  308. keywords="expect-fail"
  309. title="fail 2 error, but expecting more details">
  310. <compile files="ErrorTest.java">
  311. <message kind="error" line="5" details="expecting more"/>
  312. <message kind="error" line="6" details="details"/>
  313. </compile>
  314. </ajc-test>
  315. <ajc-test dir="harness"
  316. title="pass dir-changes: nested and static class">
  317. <compile files="DirChangesTest.java">
  318. <dir-changes added="DirChangesTest,DirChangesTest$Inner,DirChangesTest$Nested"/>
  319. </compile>
  320. </ajc-test>
  321. <ajc-test dir="harness"
  322. keywords="expect-fail"
  323. title="fail dir-changes: at end, expected file not added .. $Missing..">
  324. <compile files="DirChangesTest.java">
  325. <dir-changes added="DirChangesTest$Missing"/>
  326. </compile>
  327. </ajc-test>
  328. <ajc-test dir="harness/dirchanges-inc"
  329. title="pass dir-changes incremental">
  330. <compile
  331. options="-incremental"
  332. staging="true"
  333. sourceroots="src">
  334. <dir-changes added="Unchanged,Changed"/>
  335. </compile>
  336. <run class="Changed" options="first"/>
  337. <inc-compile tag="20">
  338. <dir-changes removed="Removed" updated="Changed"/>
  339. </inc-compile>
  340. <run class="Changed" options="second"/>
  341. </ajc-test>
  342. <ajc-test dir="harness/dirchanges-inc"
  343. keywords="expect-fail"
  344. title="fail dir-changes incremental: at start, did not expect added file to exist: {added==}Changed.class">
  345. <compile
  346. options="-incremental"
  347. staging="true"
  348. sourceroots="src"/>
  349. <inc-compile tag="20">
  350. <dir-changes added="Changed"/>
  351. </inc-compile>
  352. </ajc-test>
  353. <ajc-test dir="harness/dirchanges-inc"
  354. keywords="expect-fail"
  355. title="fail dir-changes incremental: at start, expected removed file to exist: {removed==}Missing.class">
  356. <compile
  357. options="-incremental"
  358. staging="true"
  359. sourceroots="src">
  360. <dir-changes removed="Missing"/>
  361. </compile>
  362. </ajc-test>
  363. <ajc-test dir="harness/dirchanges-inc"
  364. keywords="expect-fail"
  365. title="fail dir-changes incremental: at start, expected updated file to exist: {updated==}Missing.class">
  366. <compile
  367. options="-incremental"
  368. staging="true"
  369. sourceroots="src">
  370. <dir-changes updated="Missing"/>
  371. </compile>
  372. </ajc-test>
  373. <ajc-test dir="harness/dirchanges-inc"
  374. keywords="expect-fail"
  375. title="fail dir-changes incremental: at end, expected added file to exist: {added==}Missing.class">
  376. <compile
  377. options="-incremental"
  378. staging="true"
  379. sourceroots="src">
  380. <dir-changes added="Missing"/>
  381. </compile>
  382. </ajc-test>
  383. <ajc-test dir="harness/dirchanges-inc"
  384. keywords="expect-fail"
  385. title="fail dir-changes incremental: at end, did not expect removed file to exist: {removed==}Changed.class">
  386. <compile
  387. options="-incremental"
  388. staging="true"
  389. sourceroots="src"/>
  390. <inc-compile tag="20">
  391. <dir-changes removed="Changed"/>
  392. </inc-compile>
  393. </ajc-test>
  394. <ajc-test dir="harness/dirchanges-inc"
  395. keywords="expect-fail"
  396. title="fail dir-changes incremental: at end, expected updated file to exist: {updated==}Removed.class">
  397. <compile
  398. options="-incremental"
  399. staging="true"
  400. sourceroots="src"/>
  401. <inc-compile tag="20">
  402. <dir-changes updated="Removed"/>
  403. </inc-compile>
  404. </ajc-test>
  405. <ajc-test dir="harness"
  406. keywords="expect-fail"
  407. title="fail not forking or setting property">
  408. <compile files="SystemPropertiesTest.java"/>
  409. <run class="SystemPropertiesTest" fork="false"/>
  410. </ajc-test>
  411. <ajc-test dir="harness"
  412. keywords="expect-fail"
  413. title="fail fork without setting property">
  414. <compile files="SystemPropertiesTest.java"/>
  415. <run class="SystemPropertiesTest" fork="true"/>
  416. </ajc-test>
  417. <ajc-test dir="harness"
  418. title="pass fork and set property">
  419. <compile files="SystemPropertiesTest.java"/>
  420. <run class="SystemPropertiesTest"
  421. fork="true"
  422. vmargs="-DPASS=true,-Dname=value"/>
  423. </ajc-test>
  424. <ajc-test dir="harness/fork"
  425. title="pass fork verify Main runs">
  426. <compile files="MainWriter.java"/>
  427. <run class="MainWriter" fork="true"/>
  428. </ajc-test>
  429. <ajc-test dir="harness/fork"
  430. title="pass spoon verify Main runs">
  431. <compile files="MainWriter.java"/>
  432. <run class="MainWriter"/>
  433. </ajc-test>
  434. <ajc-test dir="harness/fork"
  435. keywords="expect-fail"
  436. title="fail fork-err-detected Main runs, uses System.err, fails on err">
  437. <compile files="MainWriter.java"/>
  438. <run class="MainWriter" options="err" fork="true"/>
  439. </ajc-test>
  440. <ajc-test dir="harness/fork"
  441. title="pass fork-err-ignored Main runs, uses System.err, err ignored">
  442. <compile files="MainWriter.java"/>
  443. <run class="MainWriter" options="err" fork="true" errStreamIsError="false"/>
  444. </ajc-test>
  445. <ajc-test dir="harness/fork"
  446. keywords="expect-fail"
  447. title="fail fork-out-detected Main runs, uses System.out, fails on out">
  448. <compile files="MainWriter.java"/>
  449. <run class="MainWriter" options="out" fork="true" outStreamIsError="true"/>
  450. </ajc-test>
  451. <ajc-test dir="harness/fork"
  452. title="pass fork-out-ignored Main runs, uses System.out, out ignored">
  453. <compile files="MainWriter.java"/>
  454. <run class="MainWriter" options="out" fork="true" outStreamIsError="false"/>
  455. </ajc-test>
  456. <ajc-test dir="harness/fork"
  457. keywords="expect-fail"
  458. title="fail fork-Error-detected Main runs, throws Error, fails on Error">
  459. <compile files="MainWriter.java"/>
  460. <run class="MainWriter" options="Error" fork="true" />
  461. </ajc-test>
  462. <ajc-test dir="harness/fork"
  463. title="pass fork-Error-ignored Main runs, throws Error, expects Error">
  464. <compile files="MainWriter.java"/>
  465. <run class="MainWriter" options="Error" fork="true" exception="Error"/>
  466. </ajc-test>
  467. <ajc-test dir="harness/fork"
  468. keywords="expect-fail"
  469. title="fail fork-Error-missed Main runs, does not throws Error, expects Error">
  470. <compile files="MainWriter.java"/>
  471. <run class="MainWriter" fork="true" exception="Error"/>
  472. </ajc-test>
  473. <ajc-test dir="harness/fork"
  474. keywords="expect-fail"
  475. title="fail spoon-err-detected Main runs, uses System.err, fails on err">
  476. <compile files="MainWriter.java"/>
  477. <run class="MainWriter" options="err" />
  478. </ajc-test>
  479. <ajc-test dir="harness/fork"
  480. title="pass spoon-err-ignored Main runs, uses System.err, err ignored">
  481. <compile files="MainWriter.java"/>
  482. <run class="MainWriter" options="err" errStreamIsError="false"/>
  483. </ajc-test>
  484. <ajc-test dir="harness/fork"
  485. keywords="expect-fail"
  486. title="fail spoon-out-detected Main runs, uses System.out, fails on out">
  487. <compile files="MainWriter.java"/>
  488. <run class="MainWriter" options="out" outStreamIsError="true"/>
  489. </ajc-test>
  490. <ajc-test dir="harness/fork"
  491. title="pass spoon-out-ignored Main runs, uses System.out, out ignored">
  492. <compile files="MainWriter.java"/>
  493. <run class="MainWriter" options="out" outStreamIsError="false"/>
  494. </ajc-test>
  495. <ajc-test dir="harness/fork"
  496. keywords="expect-fail"
  497. title="fail spoon-Error-detected Main runs, throws Error, fails on Error">
  498. <compile files="MainWriter.java"/>
  499. <run class="MainWriter" options="Error"/>
  500. </ajc-test>
  501. <ajc-test dir="harness/fork"
  502. title="pass spoon-Error-ignored Main runs, throws Error, expects Error">
  503. <compile files="MainWriter.java"/>
  504. <run class="MainWriter" options="Error" exception="Error"/>
  505. </ajc-test>
  506. <ajc-test dir="harness/fork"
  507. keywords="expect-fail"
  508. title="fail spoon-Error-missed Main runs, does not throws Error, expects Error">
  509. <compile files="MainWriter.java"/>
  510. <run class="MainWriter" exception="Error"/>
  511. </ajc-test>
  512. <ajc-test dir="harness/aspectpath"
  513. keywords="expect-fail"
  514. title="fail ltw-base Main fails without aspect">
  515. <compile files="Main.java"/>
  516. <run class="Main"/>
  517. </ajc-test>
  518. <ajc-test dir="harness/aspectpath"
  519. title="pass ltw-base Main fails without aspect (expected)">
  520. <compile files="Main.java"/>
  521. <run class="Main" exception="Error"/>
  522. </ajc-test>
  523. <ajc-test dir="harness/aspectpath"
  524. title="pass ltw-base Main works with aspect">
  525. <compile files="A.java,Main.java"/>
  526. <run class="Main"/>
  527. </ajc-test>
  528. <ajc-test dir="harness/aspectpath"
  529. title="pass ltw-jarAspectpath">
  530. <compile files="A.java" outjar="out.jar" options="-1.4"/>
  531. <compile files="Main.java" options="-1.4"/>
  532. <run class="Main" aspectpath="out.jar"/>
  533. </ajc-test>
  534. <ajc-test dir="harness/aspectpath"
  535. title="pass ltw-jarAspectpath-jarClasspath">
  536. <compile files="A.java" outjar="out.jar" options="-1.4"/>
  537. <compile files="Main.java" outjar="cl.zip" options="-1.4"/>
  538. <run class="Main" aspectpath="out.jar" classpath="cl.zip"/>
  539. </ajc-test>
  540. <!--
  541. reproduce hang from blocking IO read at JavaRun.java
  542. <ajc-test dir="harness/fork"
  543. title="pass fork-Error-ignored Main runs, throws Error, expects Error">
  544. <compile files="MainWriter.java"/>
  545. <run class="MainWriter" options="Error" fork="true" exception="Error"/>
  546. </ajc-test>
  547. unforked exception check is failing.
  548. Also forked/unforked throw different exceptions
  549. <ajc-test dir="harness/classpathTest"
  550. title="pass specify jars and directories on classpath"
  551. keywords="purejava">
  552. <compile classpath="classesDir,jars/required.jar"
  553. files="Main.java"
  554. options=""
  555. outjar="main.zip"/>
  556. <run class="Main" fork="true" exception="NoClassDefFoundError"/>
  557. <run class="Main" fork="false" exception="java.lang.ClassNotFoundException"/>
  558. <run class="Main" classpath="main.zip"/>
  559. <compile classpath="classesDir,jars/required.jar"
  560. files="main.zip"/>
  561. <run class="Main"/>
  562. </ajc-test>
  563. -->
  564. </suite>