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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  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. options="-Xreweavable"
  156. outjar="main.zip"/>
  157. <compile classpath="classesDir,jars/required.jar"
  158. aspectpath="jars/requiredAspects.jar,jars/AspectMain.jar"
  159. files="main.zip"/>
  160. <run class="Main"/>
  161. </ajc-test>
  162. <ajc-test dir="harness" keywords="incremental-test"
  163. title="pass minimal purejava sourceroots test">
  164. <compile sourceroots="sourceroot"/>
  165. <run class="packageOne.Main"/>
  166. </ajc-test>
  167. <ajc-test dir="harness" keywords="incremental-test"
  168. title="pass test of dual sourceroots with aspects">
  169. <compile sourceroots="sourceroot,sourceroot2"/>
  170. <run class="packageOne.Main"/>
  171. </ajc-test>
  172. <ajc-test dir="harness" keywords="incremental-test"
  173. title="pass minimal incremental purejava sourceroots test"
  174. comment="inc-22 generates new event, expected after">
  175. <compile options="-incremental"
  176. sourceroots="sourceroot-inc"/>
  177. <run class="packageOne.Main"/>
  178. <inc-compile tag="22"/>
  179. <run class="packageOne.Main"
  180. options="new-event"/>
  181. </ajc-test>
  182. <ajc-test dir="harness" keywords="incremental-test"
  183. title="pass rebuild minimal incremental purejava sourceroots test"
  184. comment="inc-22 generates new event, expected after">
  185. <compile options="-incremental"
  186. sourceroots="sourceroot-inc"/>
  187. <run class="packageOne.Main"/>
  188. <inc-compile tag="22"/>
  189. <run class="packageOne.Main"
  190. options="new-event"/>
  191. <compile options="-incremental"
  192. reuseCompiler="true"
  193. sourceroots="sourceroot-inc"/>
  194. <run class="packageOne.Main"/>
  195. <inc-compile tag="22"/>
  196. <run class="packageOne.Main"
  197. options="new-event"/>
  198. </ajc-test>
  199. <ajc-test dir="harness" keywords="incremental-test"
  200. title="pass rebuild fresh-same minimal incremental purejava sourceroots test"
  201. comment="inc-22 generates new event, expected after">
  202. <compile options="-incremental"
  203. sourceroots="sourceroot-inc"/>
  204. <run class="packageOne.Main"/>
  205. <inc-compile tag="22"/>
  206. <run class="packageOne.Main"
  207. options="new-event"/>
  208. <inc-compile tag="same" fresh="true" />
  209. <run class="packageOne.Main"
  210. options="new-event"/>
  211. </ajc-test>
  212. <ajc-test dir="harness" keywords="incremental-test"
  213. title="pass rebuild fresh-updated minimal incremental purejava sourceroots test"
  214. comment="inc-22 generates new event, expected after">
  215. <compile options="-incremental"
  216. sourceroots="sourceroot-inc"/>
  217. <run class="packageOne.Main"/>
  218. <inc-compile tag="22" fresh="true" />
  219. <run class="packageOne.Main"
  220. options="new-event"/>
  221. </ajc-test>
  222. <ajc-test dir="incremental/stringliteral"
  223. keywords="incremental-test,fixme"
  224. title="pass incrementally change only string literal size">
  225. <compile staging="true" options="-incremental"
  226. sourceroots="src"/>
  227. <run class="packageOne.Main"
  228. options="in packageOne.Main.main(..),
  229. before main packageOne.Main"/>
  230. <inc-compile tag="20">
  231. <dir-changes delay="2000" updated="packageOne.Main"/>
  232. </inc-compile>
  233. <run class="packageOne.Main"
  234. options="in longer packageOne.Main.main(..),
  235. before main packageOne.Main"/>
  236. </ajc-test>
  237. <ajc-test dir="incremental/defaultPackage/src"
  238. title="pass test using prior classes">
  239. <compile files="lib/Lib.java"/>
  240. <run class="lib.Lib"/>
  241. <compile files="Main.java" includeClassesDir="true"/>
  242. <run class="Main"/>
  243. </ajc-test>
  244. <ajc-test dir="incremental/interPackage/src"
  245. title="pass test using prior classes (inter-package)">
  246. <compile files="lib/Lib.java"/>
  247. <run class="lib.Lib"/>
  248. <compile files="app/Main.java" includeClassesDir="true"/>
  249. <run class="app.Main"/>
  250. </ajc-test>
  251. <ajc-test dir="harness/systemExit"
  252. title="pass System exit 0">
  253. <compile files="SystemExit.java"/>
  254. <run class="SystemExit"/>
  255. </ajc-test>
  256. <ajc-test dir="harness/systemExit"
  257. keywords="expect-fail"
  258. title="fail System exit 1">
  259. <compile files="SystemExit.java"/>
  260. <run class="SystemExit" options="1"/>
  261. </ajc-test>
  262. <ajc-test dir="harness/systemExit"
  263. keywords="expect-fail"
  264. title="fail System exit -1">
  265. <compile files="SystemExit.java"/>
  266. <run class="SystemExit" options="-1"/>
  267. </ajc-test>
  268. <ajc-test dir="harness/inpath"
  269. title="pass test inpath option - valid">
  270. <compile files="input-path-classes" sourceroots="aspectsrc"/>
  271. <run class="Main"/>
  272. </ajc-test>
  273. <ajc-test dir="harness"
  274. comment="Expect two warnings when compiling -1.3"
  275. title="pass 2 compound warning -1.3">
  276. <compile files="CompoundMessage.java" options="-1.3">
  277. <message kind="warning" line="6">
  278. <source line="14" file="CompoundMessage.java"/>
  279. </message>
  280. <message kind="warning" line="6">
  281. <source line="12" file="CompoundMessage.java"/>
  282. </message>
  283. </compile>
  284. </ajc-test>
  285. <ajc-test dir="harness"
  286. comment="Expect no warnings when compiling -1.4"
  287. title="pass 2 compound warning -1.4">
  288. <compile files="CompoundMessage.java" options="-1.4"/>
  289. </ajc-test>
  290. <ajc-test dir="harness/xlintfile"
  291. title="pass default xlintfile">
  292. <compile files="TypeNotExposed.java">
  293. <message kind="warning" line="4" text="xpose"/>
  294. </compile>
  295. </ajc-test>
  296. <ajc-test dir="harness/xlintfile"
  297. title="pass xlintfile promotes to error">
  298. <compile files="TypeNotExposed.java"
  299. xlintfile="tneError.properties">
  300. <message kind="error" line="4" text="xpose"/>
  301. </compile>
  302. </ajc-test>
  303. <ajc-test dir="harness/xlintfile"
  304. title="pass xlintfile demotes to ignore">
  305. <compile files="TypeNotExposed.java"
  306. xlintfile="tneIgnore.properties"/>
  307. </ajc-test>
  308. <ajc-test dir="harness"
  309. keywords="expect-fail"
  310. title="fail 2 error, but expecting more details">
  311. <compile files="ErrorTest.java">
  312. <message kind="error" line="5" details="expecting more"/>
  313. <message kind="error" line="6" details="details"/>
  314. </compile>
  315. </ajc-test>
  316. <ajc-test dir="harness"
  317. title="pass dir-changes: nested and static class">
  318. <compile files="DirChangesTest.java">
  319. <dir-changes added="DirChangesTest,DirChangesTest$Inner,DirChangesTest$Nested"/>
  320. </compile>
  321. </ajc-test>
  322. <ajc-test dir="harness"
  323. keywords="expect-fail"
  324. title="fail dir-changes: at end, expected file not added .. $Missing..">
  325. <compile files="DirChangesTest.java">
  326. <dir-changes added="DirChangesTest$Missing"/>
  327. </compile>
  328. </ajc-test>
  329. <ajc-test dir="harness/dirchanges-inc"
  330. title="pass dir-changes incremental">
  331. <compile
  332. options="-incremental"
  333. staging="true"
  334. sourceroots="src">
  335. <dir-changes added="Unchanged,Changed"/>
  336. </compile>
  337. <run class="Changed" options="first"/>
  338. <inc-compile tag="20">
  339. <dir-changes removed="Removed" updated="Changed"/>
  340. </inc-compile>
  341. <run class="Changed" options="second"/>
  342. </ajc-test>
  343. <ajc-test dir="harness/dirchanges-inc"
  344. keywords="expect-fail"
  345. title="fail dir-changes incremental: at start, did not expect added file to exist: {added==}Changed.class">
  346. <compile
  347. options="-incremental"
  348. staging="true"
  349. sourceroots="src"/>
  350. <inc-compile tag="20">
  351. <dir-changes added="Changed"/>
  352. </inc-compile>
  353. </ajc-test>
  354. <ajc-test dir="harness/dirchanges-inc"
  355. keywords="expect-fail"
  356. title="fail dir-changes incremental: at start, expected removed file to exist: {removed==}Missing.class">
  357. <compile
  358. options="-incremental"
  359. staging="true"
  360. sourceroots="src">
  361. <dir-changes removed="Missing"/>
  362. </compile>
  363. </ajc-test>
  364. <ajc-test dir="harness/dirchanges-inc"
  365. keywords="expect-fail"
  366. title="fail dir-changes incremental: at start, expected updated file to exist: {updated==}Missing.class">
  367. <compile
  368. options="-incremental"
  369. staging="true"
  370. sourceroots="src">
  371. <dir-changes updated="Missing"/>
  372. </compile>
  373. </ajc-test>
  374. <ajc-test dir="harness/dirchanges-inc"
  375. keywords="expect-fail"
  376. title="fail dir-changes incremental: at end, expected added file to exist: {added==}Missing.class">
  377. <compile
  378. options="-incremental"
  379. staging="true"
  380. sourceroots="src">
  381. <dir-changes added="Missing"/>
  382. </compile>
  383. </ajc-test>
  384. <ajc-test dir="harness/dirchanges-inc"
  385. keywords="expect-fail"
  386. title="fail dir-changes incremental: at end, did not expect removed file to exist: {removed==}Changed.class">
  387. <compile
  388. options="-incremental"
  389. staging="true"
  390. sourceroots="src"/>
  391. <inc-compile tag="20">
  392. <dir-changes removed="Changed"/>
  393. </inc-compile>
  394. </ajc-test>
  395. <ajc-test dir="harness/dirchanges-inc"
  396. keywords="expect-fail"
  397. title="fail dir-changes incremental: at end, expected updated file to exist: {updated==}Removed.class">
  398. <compile
  399. options="-incremental"
  400. staging="true"
  401. sourceroots="src"/>
  402. <inc-compile tag="20">
  403. <dir-changes updated="Removed"/>
  404. </inc-compile>
  405. </ajc-test>
  406. <ajc-test dir="harness"
  407. keywords="expect-fail"
  408. title="fail not forking or setting property">
  409. <compile files="SystemPropertiesTest.java"/>
  410. <run class="SystemPropertiesTest" fork="false"/>
  411. </ajc-test>
  412. <ajc-test dir="harness"
  413. keywords="expect-fail"
  414. title="fail fork without setting property">
  415. <compile files="SystemPropertiesTest.java"/>
  416. <run class="SystemPropertiesTest" fork="true"/>
  417. </ajc-test>
  418. <ajc-test dir="harness"
  419. title="pass fork and set property">
  420. <compile files="SystemPropertiesTest.java"/>
  421. <run class="SystemPropertiesTest"
  422. fork="true"
  423. vmargs="-DPASS=true,-Dname=value"/>
  424. </ajc-test>
  425. <ajc-test dir="harness/fork"
  426. title="pass fork verify Main runs">
  427. <compile files="MainWriter.java"/>
  428. <run class="MainWriter" fork="true"/>
  429. </ajc-test>
  430. <ajc-test dir="harness/fork"
  431. title="pass spoon verify Main runs">
  432. <compile files="MainWriter.java"/>
  433. <run class="MainWriter"/>
  434. </ajc-test>
  435. <ajc-test dir="harness/fork"
  436. keywords="expect-fail"
  437. title="fail fork-err-detected Main runs, uses System.err, fails on err">
  438. <compile files="MainWriter.java"/>
  439. <run class="MainWriter" options="err" fork="true"/>
  440. </ajc-test>
  441. <ajc-test dir="harness/fork"
  442. title="pass fork-err-ignored Main runs, uses System.err, err ignored">
  443. <compile files="MainWriter.java"/>
  444. <run class="MainWriter" options="err" fork="true" errStreamIsError="false"/>
  445. </ajc-test>
  446. <ajc-test dir="harness/fork"
  447. keywords="expect-fail"
  448. title="fail fork-out-detected Main runs, uses System.out, fails on out">
  449. <compile files="MainWriter.java"/>
  450. <run class="MainWriter" options="out" fork="true" outStreamIsError="true"/>
  451. </ajc-test>
  452. <ajc-test dir="harness/fork"
  453. title="pass fork-out-ignored Main runs, uses System.out, out ignored">
  454. <compile files="MainWriter.java"/>
  455. <run class="MainWriter" options="out" fork="true" outStreamIsError="false"/>
  456. </ajc-test>
  457. <ajc-test dir="harness/fork"
  458. keywords="expect-fail"
  459. title="fail fork-Error-detected Main runs, throws Error, fails on Error">
  460. <compile files="MainWriter.java"/>
  461. <run class="MainWriter" options="Error" fork="true" />
  462. </ajc-test>
  463. <ajc-test dir="harness/fork"
  464. title="pass fork-Error-ignored Main runs, throws Error, expects Error">
  465. <compile files="MainWriter.java"/>
  466. <run class="MainWriter" options="Error" fork="true" exception="Error"/>
  467. </ajc-test>
  468. <ajc-test dir="harness/fork"
  469. keywords="expect-fail"
  470. title="fail fork-Error-missed Main runs, does not throws Error, expects Error">
  471. <compile files="MainWriter.java"/>
  472. <run class="MainWriter" fork="true" exception="Error"/>
  473. </ajc-test>
  474. <ajc-test dir="harness/fork"
  475. keywords="expect-fail"
  476. title="fail spoon-err-detected Main runs, uses System.err, fails on err">
  477. <compile files="MainWriter.java"/>
  478. <run class="MainWriter" options="err" />
  479. </ajc-test>
  480. <ajc-test dir="harness/fork"
  481. title="pass spoon-err-ignored Main runs, uses System.err, err ignored">
  482. <compile files="MainWriter.java"/>
  483. <run class="MainWriter" options="err" errStreamIsError="false"/>
  484. </ajc-test>
  485. <ajc-test dir="harness/fork"
  486. keywords="expect-fail"
  487. title="fail spoon-out-detected Main runs, uses System.out, fails on out">
  488. <compile files="MainWriter.java"/>
  489. <run class="MainWriter" options="out" outStreamIsError="true"/>
  490. </ajc-test>
  491. <ajc-test dir="harness/fork"
  492. title="pass spoon-out-ignored Main runs, uses System.out, out ignored">
  493. <compile files="MainWriter.java"/>
  494. <run class="MainWriter" options="out" outStreamIsError="false"/>
  495. </ajc-test>
  496. <ajc-test dir="harness/fork"
  497. keywords="expect-fail"
  498. title="fail spoon-Error-detected Main runs, throws Error, fails on Error">
  499. <compile files="MainWriter.java"/>
  500. <run class="MainWriter" options="Error"/>
  501. </ajc-test>
  502. <ajc-test dir="harness/fork"
  503. title="pass spoon-Error-ignored Main runs, throws Error, expects Error">
  504. <compile files="MainWriter.java"/>
  505. <run class="MainWriter" options="Error" exception="Error"/>
  506. </ajc-test>
  507. <ajc-test dir="harness/fork"
  508. keywords="expect-fail"
  509. title="fail spoon-Error-missed Main runs, does not throws Error, expects Error">
  510. <compile files="MainWriter.java"/>
  511. <run class="MainWriter" exception="Error"/>
  512. </ajc-test>
  513. <ajc-test dir="harness/aspectpath"
  514. keywords="expect-fail"
  515. title="fail ltw-base Main fails without aspect">
  516. <compile files="Main.java"/>
  517. <run class="Main"/>
  518. </ajc-test>
  519. <ajc-test dir="harness/aspectpath"
  520. title="pass ltw-base Main fails without aspect (expected)">
  521. <compile files="Main.java"/>
  522. <run class="Main" exception="Error"/>
  523. </ajc-test>
  524. <ajc-test dir="harness/aspectpath"
  525. title="pass ltw-base Main works with aspect">
  526. <compile files="A.java,Main.java"/>
  527. <run class="Main"/>
  528. </ajc-test>
  529. <ajc-test dir="harness/aspectpath"
  530. title="pass ltw-jarAspectpath">
  531. <compile files="A.java" outjar="out.jar"/>
  532. <compile files="Main.java"/>
  533. <run class="Main" aspectpath="out.jar"/>
  534. </ajc-test>
  535. <ajc-test dir="harness/aspectpath"
  536. title="pass ltw-jarAspectpath-jarClasspath">
  537. <compile files="A.java" outjar="out.jar"/>
  538. <compile files="Main.java" outjar="cl.zip"/>
  539. <run class="Main" aspectpath="out.jar" classpath="cl.zip"/>
  540. </ajc-test>
  541. <!--
  542. reproduce hang from blocking IO read at JavaRun.java
  543. <ajc-test dir="harness/fork"
  544. title="pass fork-Error-ignored Main runs, throws Error, expects Error">
  545. <compile files="MainWriter.java"/>
  546. <run class="MainWriter" options="Error" fork="true" exception="Error"/>
  547. </ajc-test>
  548. unforked exception check is failing.
  549. Also forked/unforked throw different exceptions
  550. <ajc-test dir="harness/classpathTest"
  551. title="pass specify jars and directories on classpath"
  552. keywords="purejava">
  553. <compile classpath="classesDir,jars/required.jar"
  554. files="Main.java"
  555. options="-Xreweavable"
  556. outjar="main.zip"/>
  557. <run class="Main" fork="true" exception="NoClassDefFoundError"/>
  558. <run class="Main" fork="false" exception="java.lang.ClassNotFoundException"/>
  559. <run class="Main" classpath="main.zip"/>
  560. <compile classpath="classesDir,jars/required.jar"
  561. files="main.zip"/>
  562. <run class="Main"/>
  563. </ajc-test>
  564. -->
  565. </suite>