~ubuntu-branches/ubuntu/natty/aspectj/natty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/tests/ajcHarnessTests.xml

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2009-10-04 16:37:23 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091004163723-ck4y7j7fhjxskkie
Tags: 1.6.6+dfsg-1
* New upstream release.
  - Update 02_use_gjdoc.diff patch
* Update my email address

Show diffs side-by-side

added added

removed removed

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