67
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
67
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
70
70
if (test_alloc_failed) {
110
110
TEST_ALLOC_FAIL {
113
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
113
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
116
116
if (test_alloc_failed) {
135
TEST_FEATURE ("with non-NULL update parameter (override)");
137
JobClass *tmp = NULL;
139
strcpy (buf, "start on starting\n");
140
strcat (buf, "author \"me\"\n");
144
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
147
TEST_NE_P (job, NULL);
148
TEST_EQ_STR (job->author, "me");
149
TEST_NE_P (job->start_on, NULL);
151
strcat (buf, "author \"you\"\n");
152
strcat (buf, "manual\n");
153
strcat (buf, "description \"my description\"\n");
157
tmp = parse_job (NULL, NULL, job, "test", buf, strlen (buf),
159
TEST_NE_P (tmp, NULL);
161
/* if passed a job, the same object should be returned.
163
TEST_EQ_P (tmp, job);
165
TEST_EQ_STR (tmp->author, "you");
166
TEST_EQ_P (tmp->start_on, NULL);
167
TEST_NE_P (tmp->description, NULL);
169
TEST_EQ_STR (tmp->description, "my description");
153
192
TEST_ALLOC_FAIL {
156
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
195
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
159
198
if (test_alloc_failed) {
190
229
TEST_ALLOC_FAIL {
193
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
232
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
196
235
if (test_alloc_failed) {
229
268
TEST_ALLOC_FAIL {
232
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
271
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
235
274
if (test_alloc_failed) {
269
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
308
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
271
310
TEST_EQ_P (job, NULL);
299
338
TEST_ALLOC_FAIL {
302
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
341
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
305
344
if (test_alloc_failed) {
340
379
TEST_ALLOC_FAIL {
343
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
382
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
346
385
if (test_alloc_failed) {
379
418
TEST_ALLOC_FAIL {
382
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
421
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
385
424
if (test_alloc_failed) {
419
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
458
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
421
460
TEST_EQ_P (job, NULL);
447
486
TEST_ALLOC_FAIL {
450
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
489
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
453
492
if (test_alloc_failed) {
484
523
TEST_ALLOC_FAIL {
487
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
526
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
490
529
if (test_alloc_failed) {
524
563
TEST_ALLOC_FAIL {
527
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
566
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
530
569
if (test_alloc_failed) {
565
604
TEST_ALLOC_FAIL {
568
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
607
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
571
610
if (test_alloc_failed) {
604
643
TEST_ALLOC_FAIL {
607
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
646
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
610
649
if (test_alloc_failed) {
643
682
TEST_ALLOC_FAIL {
646
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
685
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
649
688
if (test_alloc_failed) {
683
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
722
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
685
724
TEST_EQ_P (job, NULL);
702
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
741
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
704
743
TEST_EQ_P (job, NULL);
721
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
760
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
723
762
TEST_EQ_P (job, NULL);
740
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
779
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
742
781
TEST_EQ_P (job, NULL);
768
807
TEST_ALLOC_FAIL {
771
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
810
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
774
813
if (test_alloc_failed) {
805
844
TEST_ALLOC_FAIL {
808
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
847
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
811
850
if (test_alloc_failed) {
845
884
TEST_ALLOC_FAIL {
848
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
887
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
851
890
if (test_alloc_failed) {
886
925
TEST_ALLOC_FAIL {
889
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
928
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
892
931
if (test_alloc_failed) {
925
964
TEST_ALLOC_FAIL {
928
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
967
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
931
970
if (test_alloc_failed) {
964
1003
TEST_ALLOC_FAIL {
967
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1006
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
970
1009
if (test_alloc_failed) {
1004
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1043
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1006
1045
TEST_EQ_P (job, NULL);
1023
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1062
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1025
1064
TEST_EQ_P (job, NULL);
1042
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1081
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1044
1083
TEST_EQ_P (job, NULL);
1061
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1100
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1063
1102
TEST_EQ_P (job, NULL);
1089
1128
TEST_ALLOC_FAIL {
1092
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1131
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1093
1132
&pos, &lineno);
1095
1134
if (test_alloc_failed) {
1126
1165
TEST_ALLOC_FAIL {
1129
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1168
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1130
1169
&pos, &lineno);
1132
1171
if (test_alloc_failed) {
1166
1205
TEST_ALLOC_FAIL {
1169
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1208
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1170
1209
&pos, &lineno);
1172
1211
if (test_alloc_failed) {
1207
1246
TEST_ALLOC_FAIL {
1210
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1249
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1211
1250
&pos, &lineno);
1213
1252
if (test_alloc_failed) {
1246
1285
TEST_ALLOC_FAIL {
1249
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1288
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1250
1289
&pos, &lineno);
1252
1291
if (test_alloc_failed) {
1285
1324
TEST_ALLOC_FAIL {
1288
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1327
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1289
1328
&pos, &lineno);
1291
1330
if (test_alloc_failed) {
1325
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1364
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1327
1366
TEST_EQ_P (job, NULL);
1344
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1383
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1346
1385
TEST_EQ_P (job, NULL);
1363
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1402
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1365
1404
TEST_EQ_P (job, NULL);
1382
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1421
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1384
1423
TEST_EQ_P (job, NULL);
1410
1449
TEST_ALLOC_FAIL {
1413
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1452
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1414
1453
&pos, &lineno);
1416
1455
if (test_alloc_failed) {
1447
1486
TEST_ALLOC_FAIL {
1450
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1489
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1451
1490
&pos, &lineno);
1453
1492
if (test_alloc_failed) {
1487
1526
TEST_ALLOC_FAIL {
1490
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1529
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1491
1530
&pos, &lineno);
1493
1532
if (test_alloc_failed) {
1528
1567
TEST_ALLOC_FAIL {
1531
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1570
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1532
1571
&pos, &lineno);
1534
1573
if (test_alloc_failed) {
1567
1606
TEST_ALLOC_FAIL {
1570
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1609
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1571
1610
&pos, &lineno);
1573
1612
if (test_alloc_failed) {
1606
1645
TEST_ALLOC_FAIL {
1609
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1648
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1610
1649
&pos, &lineno);
1612
1651
if (test_alloc_failed) {
1646
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1685
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1648
1687
TEST_EQ_P (job, NULL);
1665
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1704
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1667
1706
TEST_EQ_P (job, NULL);
1684
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1723
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1686
1725
TEST_EQ_P (job, NULL);
1703
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1742
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
1705
1744
TEST_EQ_P (job, NULL);
1731
1770
TEST_ALLOC_FAIL {
1734
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1773
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1735
1774
&pos, &lineno);
1737
1776
if (test_alloc_failed) {
1776
1815
TEST_ALLOC_FAIL {
1779
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1818
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1780
1819
&pos, &lineno);
1782
1821
if (test_alloc_failed) {
1828
1867
TEST_ALLOC_FAIL {
1831
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1870
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1832
1871
&pos, &lineno);
1834
1873
if (test_alloc_failed) {
1879
1918
TEST_ALLOC_FAIL {
1882
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1921
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1883
1922
&pos, &lineno);
1885
1924
if (test_alloc_failed) {
1942
1981
TEST_ALLOC_FAIL {
1945
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
1984
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
1946
1985
&pos, &lineno);
1948
1987
if (test_alloc_failed) {
2012
2051
TEST_ALLOC_FAIL {
2015
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2054
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2016
2055
&pos, &lineno);
2018
2057
if (test_alloc_failed) {
2090
2129
TEST_ALLOC_FAIL {
2093
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2132
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2094
2133
&pos, &lineno);
2096
2135
if (test_alloc_failed) {
2170
2209
TEST_ALLOC_FAIL {
2173
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2212
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2174
2213
&pos, &lineno);
2176
2215
if (test_alloc_failed) {
2249
2288
TEST_ALLOC_FAIL {
2252
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2291
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2253
2292
&pos, &lineno);
2255
2294
if (test_alloc_failed) {
2294
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2333
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2296
2335
TEST_EQ_P (job, NULL);
2313
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2352
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2315
2354
TEST_EQ_P (job, NULL);
2332
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2371
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2334
2373
TEST_EQ_P (job, NULL);
2351
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2390
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2353
2392
TEST_EQ_P (job, NULL);
2370
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2409
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2372
2411
TEST_EQ_P (job, NULL);
2387
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2426
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2389
2428
TEST_EQ_P (job, NULL);
2406
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2445
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2408
2447
TEST_EQ_P (job, NULL);
2425
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2464
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2427
2466
TEST_EQ_P (job, NULL);
2444
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2483
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2446
2485
TEST_EQ_P (job, NULL);
2463
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2502
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2465
2504
TEST_EQ_P (job, NULL);
2482
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2521
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2484
2523
TEST_EQ_P (job, NULL);
2501
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2540
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2503
2542
TEST_EQ_P (job, NULL);
2520
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2559
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
2522
2561
TEST_EQ_P (job, NULL);
2551
2590
TEST_ALLOC_FAIL {
2554
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2593
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2555
2594
&pos, &lineno);
2557
2596
if (test_alloc_failed) {
2586
2625
TEST_FEATURE ("manual stanza after start on");
2587
2626
strcpy (buf, "start on wibble\nmanual\n");
2589
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2628
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2590
2629
&pos, &lineno);
2592
2631
TEST_NE_P (job, NULL);
2616
2655
TEST_ALLOC_FAIL {
2619
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2658
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2620
2659
&pos, &lineno);
2622
2661
if (test_alloc_failed) {
2661
2700
TEST_ALLOC_FAIL {
2664
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2703
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2665
2704
&pos, &lineno);
2667
2706
if (test_alloc_failed) {
2713
2752
TEST_ALLOC_FAIL {
2716
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2755
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2717
2756
&pos, &lineno);
2719
2758
if (test_alloc_failed) {
2764
2803
TEST_ALLOC_FAIL {
2767
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2806
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2768
2807
&pos, &lineno);
2770
2809
if (test_alloc_failed) {
2827
2866
TEST_ALLOC_FAIL {
2830
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2869
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2831
2870
&pos, &lineno);
2833
2872
if (test_alloc_failed) {
2897
2936
TEST_ALLOC_FAIL {
2900
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
2939
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2901
2940
&pos, &lineno);
2903
2942
if (test_alloc_failed) {
2975
3014
TEST_ALLOC_FAIL {
2978
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3017
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
2979
3018
&pos, &lineno);
2981
3020
if (test_alloc_failed) {
3055
3094
TEST_ALLOC_FAIL {
3058
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3097
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3059
3098
&pos, &lineno);
3061
3100
if (test_alloc_failed) {
3134
3173
TEST_ALLOC_FAIL {
3137
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3176
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3138
3177
&pos, &lineno);
3140
3179
if (test_alloc_failed) {
3179
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3218
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3181
3220
TEST_EQ_P (job, NULL);
3198
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3237
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3200
3239
TEST_EQ_P (job, NULL);
3217
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3256
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3219
3258
TEST_EQ_P (job, NULL);
3236
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3275
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3238
3277
TEST_EQ_P (job, NULL);
3255
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3294
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3257
3296
TEST_EQ_P (job, NULL);
3272
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3311
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3274
3313
TEST_EQ_P (job, NULL);
3291
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3330
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3293
3332
TEST_EQ_P (job, NULL);
3310
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3349
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3312
3351
TEST_EQ_P (job, NULL);
3329
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3368
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3331
3370
TEST_EQ_P (job, NULL);
3348
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3387
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3350
3389
TEST_EQ_P (job, NULL);
3367
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3406
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3369
3408
TEST_EQ_P (job, NULL);
3386
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3425
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3388
3427
TEST_EQ_P (job, NULL);
3405
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3444
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3407
3446
TEST_EQ_P (job, NULL);
3432
3471
TEST_ALLOC_FAIL {
3435
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3474
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3436
3475
&pos, &lineno);
3438
3477
if (test_alloc_failed) {
3465
3504
TEST_ALLOC_FAIL {
3468
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3507
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3469
3508
&pos, &lineno);
3471
3510
if (test_alloc_failed) {
3501
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3540
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3503
3542
TEST_EQ_P (job, NULL);
3520
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3559
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3522
3561
TEST_EQ_P (job, NULL);
3547
3586
TEST_ALLOC_FAIL {
3550
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3589
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3551
3590
&pos, &lineno);
3553
3592
if (test_alloc_failed) {
3580
3619
TEST_ALLOC_FAIL {
3583
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3622
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3584
3623
&pos, &lineno);
3586
3625
if (test_alloc_failed) {
3616
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3655
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3618
3657
TEST_EQ_P (job, NULL);
3635
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3674
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3637
3676
TEST_EQ_P (job, NULL);
3662
3701
TEST_ALLOC_FAIL {
3665
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3704
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3666
3705
&pos, &lineno);
3668
3707
if (test_alloc_failed) {
3695
3734
TEST_ALLOC_FAIL {
3698
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3737
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3699
3738
&pos, &lineno);
3701
3740
if (test_alloc_failed) {
3731
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3770
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3733
3772
TEST_EQ_P (job, NULL);
3750
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3789
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3752
3791
TEST_EQ_P (job, NULL);
3777
3816
TEST_ALLOC_FAIL {
3780
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3819
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3781
3820
&pos, &lineno);
3783
3822
if (test_alloc_failed) {
3814
3853
TEST_ALLOC_FAIL {
3817
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3856
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3818
3857
&pos, &lineno);
3820
3859
if (test_alloc_failed) {
3857
3896
TEST_ALLOC_FAIL {
3860
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3899
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3861
3900
&pos, &lineno);
3863
3902
if (test_alloc_failed) {
3902
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3941
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
3904
3943
TEST_EQ_P (job, NULL);
3929
3968
TEST_ALLOC_FAIL {
3932
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
3971
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3933
3972
&pos, &lineno);
3935
3974
if (test_alloc_failed) {
3962
4001
TEST_ALLOC_FAIL {
3965
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4004
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3966
4005
&pos, &lineno);
3968
4007
if (test_alloc_failed) {
3995
4034
TEST_ALLOC_FAIL {
3998
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4037
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
3999
4038
&pos, &lineno);
4001
4040
if (test_alloc_failed) {
4028
4067
TEST_ALLOC_FAIL {
4031
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4070
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4032
4071
&pos, &lineno);
4034
4073
if (test_alloc_failed) {
4061
4100
TEST_ALLOC_FAIL {
4064
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4103
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4065
4104
&pos, &lineno);
4067
4106
if (test_alloc_failed) {
4096
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4135
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4098
4137
TEST_EQ_P (job, NULL);
4115
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4154
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4117
4156
TEST_EQ_P (job, NULL);
4134
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4173
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4136
4175
TEST_EQ_P (job, NULL);
4159
4198
TEST_ALLOC_FAIL {
4162
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4201
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4163
4202
&pos, &lineno);
4165
4204
if (test_alloc_failed) {
4193
4232
TEST_ALLOC_FAIL {
4196
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4235
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4197
4236
&pos, &lineno);
4199
4238
if (test_alloc_failed) {
4226
4265
TEST_ALLOC_FAIL {
4229
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4268
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4230
4269
&pos, &lineno);
4232
4271
if (test_alloc_failed) {
4260
4299
TEST_ALLOC_FAIL {
4263
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4302
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4264
4303
&pos, &lineno);
4266
4305
if (test_alloc_failed) {
4293
4332
TEST_ALLOC_FAIL {
4296
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4335
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4297
4336
&pos, &lineno);
4299
4338
if (test_alloc_failed) {
4329
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4368
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4331
4370
TEST_EQ_P (job, NULL);
4348
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4387
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4350
4389
TEST_EQ_P (job, NULL);
4367
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4406
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4369
4408
TEST_EQ_P (job, NULL);
4386
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4425
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4388
4427
TEST_EQ_P (job, NULL);
4405
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4444
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4407
4446
TEST_EQ_P (job, NULL);
4424
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4463
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4426
4465
TEST_EQ_P (job, NULL);
4443
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4482
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4445
4484
TEST_EQ_P (job, NULL);
4462
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4501
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4464
4503
TEST_EQ_P (job, NULL);
4481
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4520
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4483
4522
TEST_EQ_P (job, NULL);
4500
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4539
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4502
4541
TEST_EQ_P (job, NULL);
4519
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4558
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4521
4560
TEST_EQ_P (job, NULL);
4538
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4577
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4540
4579
TEST_EQ_P (job, NULL);
4565
4604
TEST_ALLOC_FAIL {
4568
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4607
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4569
4608
&pos, &lineno);
4571
4610
if (test_alloc_failed) {
4597
4636
TEST_ALLOC_FAIL {
4600
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4639
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4601
4640
&pos, &lineno);
4603
4642
if (test_alloc_failed) {
4632
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4671
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4634
4673
TEST_EQ_P (job, NULL);
4659
4698
TEST_ALLOC_FAIL {
4662
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4701
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4663
4702
&pos, &lineno);
4665
4704
if (test_alloc_failed) {
4693
4732
TEST_ALLOC_FAIL {
4696
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4735
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4697
4736
&pos, &lineno);
4699
4738
if (test_alloc_failed) {
4729
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4768
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4731
4770
TEST_EQ_P (job, NULL);
4748
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4787
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4750
4789
TEST_EQ_P (job, NULL);
4775
4814
TEST_ALLOC_FAIL {
4778
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4817
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4779
4818
&pos, &lineno);
4781
4820
if (test_alloc_failed) {
4808
4847
TEST_ALLOC_FAIL {
4811
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4850
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4812
4851
&pos, &lineno);
4814
4853
if (test_alloc_failed) {
4841
4880
TEST_ALLOC_FAIL {
4844
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4883
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4845
4884
&pos, &lineno);
4847
4886
if (test_alloc_failed) {
4872
4911
TEST_ALLOC_FAIL {
4875
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
4914
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
4876
4915
&pos, &lineno);
4878
4917
if (test_alloc_failed) {
4907
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4946
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4909
4948
TEST_EQ_P (job, NULL);
4926
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4965
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4928
4967
TEST_EQ_P (job, NULL);
4945
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4984
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4947
4986
TEST_EQ_P (job, NULL);
4964
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5003
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4966
5005
TEST_EQ_P (job, NULL);
4983
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5022
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
4985
5024
TEST_EQ_P (job, NULL);
5002
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5041
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5004
5043
TEST_EQ_P (job, NULL);
5021
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5060
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5023
5062
TEST_EQ_P (job, NULL);
5040
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5079
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5042
5081
TEST_EQ_P (job, NULL);
5059
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5098
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5061
5100
TEST_EQ_P (job, NULL);
5079
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5118
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5081
5120
TEST_EQ_P (job, NULL);
5099
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5138
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5101
5140
TEST_EQ_P (job, NULL);
5127
5166
TEST_ALLOC_FAIL {
5130
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5169
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5131
5170
&pos, &lineno);
5133
5172
if (test_alloc_failed) {
5166
5205
TEST_ALLOC_FAIL {
5169
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5208
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5170
5209
&pos, &lineno);
5172
5211
if (test_alloc_failed) {
5205
5244
TEST_ALLOC_FAIL {
5208
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5247
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5209
5248
&pos, &lineno);
5211
5250
if (test_alloc_failed) {
5249
5288
TEST_ALLOC_FAIL {
5252
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5291
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5253
5292
&pos, &lineno);
5255
5294
if (test_alloc_failed) {
5293
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5332
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5295
5334
TEST_EQ_P (job, NULL);
5312
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5351
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5314
5353
TEST_EQ_P (job, NULL);
5331
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5370
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5333
5372
TEST_EQ_P (job, NULL);
5350
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5389
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5352
5391
TEST_EQ_P (job, NULL);
5369
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5408
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5371
5410
TEST_EQ_P (job, NULL);
5388
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5427
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5390
5429
TEST_EQ_P (job, NULL);
5415
5454
TEST_ALLOC_FAIL {
5418
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5457
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5419
5458
&pos, &lineno);
5421
5460
if (test_alloc_failed) {
5448
5487
TEST_ALLOC_FAIL {
5451
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5490
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5452
5491
&pos, &lineno);
5454
5493
if (test_alloc_failed) {
5481
5520
TEST_ALLOC_FAIL {
5484
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5523
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5485
5524
&pos, &lineno);
5487
5526
if (test_alloc_failed) {
5514
5553
TEST_ALLOC_FAIL {
5517
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5556
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5518
5557
&pos, &lineno);
5520
5559
if (test_alloc_failed) {
5548
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5587
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5550
5589
TEST_EQ_P (job, NULL);
5567
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5606
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5569
5608
TEST_EQ_P (job, NULL);
5585
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5624
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5587
5626
TEST_EQ_P (job, NULL);
5612
5651
TEST_ALLOC_FAIL {
5615
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5654
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5616
5655
&pos, &lineno);
5618
5657
if (test_alloc_failed) {
5650
5689
TEST_ALLOC_FAIL {
5653
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5692
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5654
5693
&pos, &lineno);
5656
5695
if (test_alloc_failed) {
5690
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5729
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5692
5731
TEST_EQ_P (job, NULL);
5709
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5748
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5711
5750
TEST_EQ_P (job, NULL);
5736
5775
TEST_ALLOC_FAIL {
5739
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5778
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5740
5779
&pos, &lineno);
5742
5781
if (test_alloc_failed) {
5773
5812
TEST_ALLOC_FAIL {
5776
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5815
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5777
5816
&pos, &lineno);
5779
5818
if (test_alloc_failed) {
5816
5855
TEST_ALLOC_FAIL {
5819
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5858
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5820
5859
&pos, &lineno);
5822
5861
if (test_alloc_failed) {
5861
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5900
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5863
5902
TEST_EQ_P (job, NULL);
5888
5927
TEST_ALLOC_FAIL {
5891
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5930
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5892
5931
&pos, &lineno);
5894
5933
if (test_alloc_failed) {
5921
5960
TEST_ALLOC_FAIL {
5924
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
5963
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
5925
5964
&pos, &lineno);
5927
5966
if (test_alloc_failed) {
5956
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5995
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5958
5997
TEST_EQ_P (job, NULL);
5975
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6014
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5977
6016
TEST_EQ_P (job, NULL);
5994
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6033
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
5996
6035
TEST_EQ_P (job, NULL);
6013
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6052
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6015
6054
TEST_EQ_P (job, NULL);
6032
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6071
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6034
6073
TEST_EQ_P (job, NULL);
6052
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6091
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6054
6093
TEST_EQ_P (job, NULL);
6079
6118
TEST_ALLOC_FAIL {
6082
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6121
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6083
6122
&pos, &lineno);
6085
6124
if (test_alloc_failed) {
6112
6151
TEST_ALLOC_FAIL {
6115
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6154
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6116
6155
&pos, &lineno);
6118
6157
if (test_alloc_failed) {
6145
6184
TEST_ALLOC_FAIL {
6148
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6187
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6149
6188
&pos, &lineno);
6151
6190
if (test_alloc_failed) {
6180
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6219
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6182
6221
TEST_EQ_P (job, NULL);
6199
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6238
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6201
6240
TEST_EQ_P (job, NULL);
6218
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6257
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6220
6259
TEST_EQ_P (job, NULL);
6237
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6276
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6239
6278
TEST_EQ_P (job, NULL);
6256
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6295
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6258
6297
TEST_EQ_P (job, NULL);
6275
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6314
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6277
6316
TEST_EQ_P (job, NULL);
6304
6343
TEST_ALLOC_FAIL {
6307
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6346
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6308
6347
&pos, &lineno);
6310
6349
if (test_alloc_failed) {
6333
6372
TEST_ALLOC_FAIL {
6336
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6375
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6337
6376
&pos, &lineno);
6339
6378
if (test_alloc_failed) {
6365
6404
TEST_ALLOC_FAIL {
6368
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6407
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6369
6408
&pos, &lineno);
6371
6410
if (test_alloc_failed) {
6394
6433
TEST_ALLOC_FAIL {
6397
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6436
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6398
6437
&pos, &lineno);
6400
6439
if (test_alloc_failed) {
6427
6466
TEST_ALLOC_FAIL {
6430
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6469
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6431
6470
&pos, &lineno);
6433
6472
if (test_alloc_failed) {
6460
6499
TEST_ALLOC_FAIL {
6463
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6502
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6464
6503
&pos, &lineno);
6466
6505
if (test_alloc_failed) {
6493
6532
TEST_ALLOC_FAIL {
6496
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6535
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6497
6536
&pos, &lineno);
6499
6538
if (test_alloc_failed) {
6523
6562
TEST_ALLOC_FAIL {
6526
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6565
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6527
6566
&pos, &lineno);
6529
6568
if (test_alloc_failed) {
6556
6595
TEST_ALLOC_FAIL {
6559
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6598
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6560
6599
&pos, &lineno);
6562
6601
if (test_alloc_failed) {
6586
6625
TEST_ALLOC_FAIL {
6589
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6628
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6590
6629
&pos, &lineno);
6592
6631
if (test_alloc_failed) {
6621
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6660
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6623
6662
TEST_EQ_P (job, NULL);
6640
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6679
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6642
6681
TEST_EQ_P (job, NULL);
6659
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6698
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6661
6700
TEST_EQ_P (job, NULL);
6674
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6713
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6676
6715
TEST_EQ_P (job, NULL);
6693
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6732
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6695
6734
TEST_EQ_P (job, NULL);
6708
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6747
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6710
6749
TEST_EQ_P (job, NULL);
6727
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6766
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6729
6768
TEST_EQ_P (job, NULL);
6742
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6781
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6744
6783
TEST_EQ_P (job, NULL);
6761
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6800
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6763
6802
TEST_EQ_P (job, NULL);
6776
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6815
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6778
6817
TEST_EQ_P (job, NULL);
6795
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6834
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6797
6836
TEST_EQ_P (job, NULL);
6810
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6849
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
6812
6851
TEST_EQ_P (job, NULL);
6836
6875
TEST_ALLOC_FAIL {
6839
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6878
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6840
6879
&pos, &lineno);
6842
6881
if (test_alloc_failed) {
6870
6909
TEST_ALLOC_FAIL {
6873
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6912
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6874
6913
&pos, &lineno);
6876
6915
if (test_alloc_failed) {
6904
6943
TEST_ALLOC_FAIL {
6907
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6946
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6908
6947
&pos, &lineno);
6910
6949
if (test_alloc_failed) {
6938
6977
TEST_ALLOC_FAIL {
6941
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
6980
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6942
6981
&pos, &lineno);
6944
6983
if (test_alloc_failed) {
6972
7011
TEST_ALLOC_FAIL {
6975
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7014
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
6976
7015
&pos, &lineno);
6978
7017
if (test_alloc_failed) {
7007
7046
TEST_ALLOC_FAIL {
7010
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7049
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7011
7050
&pos, &lineno);
7013
7052
if (test_alloc_failed) {
7042
7081
TEST_ALLOC_FAIL {
7045
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7084
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7046
7085
&pos, &lineno);
7048
7087
if (test_alloc_failed) {
7076
7115
TEST_ALLOC_FAIL {
7079
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7118
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7080
7119
&pos, &lineno);
7082
7121
if (test_alloc_failed) {
7111
7150
TEST_ALLOC_FAIL {
7114
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7153
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7115
7154
&pos, &lineno);
7117
7156
if (test_alloc_failed) {
7145
7184
TEST_ALLOC_FAIL {
7148
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7187
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7149
7188
&pos, &lineno);
7151
7190
if (test_alloc_failed) {
7179
7218
TEST_ALLOC_FAIL {
7182
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7221
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7183
7222
&pos, &lineno);
7185
7224
if (test_alloc_failed) {
7213
7252
TEST_ALLOC_FAIL {
7216
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7255
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7217
7256
&pos, &lineno);
7219
7258
if (test_alloc_failed) {
7248
7287
TEST_ALLOC_FAIL {
7251
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7290
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7252
7291
&pos, &lineno);
7254
7293
if (test_alloc_failed) {
7282
7321
TEST_ALLOC_FAIL {
7285
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7324
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7286
7325
&pos, &lineno);
7288
7327
if (test_alloc_failed) {
7318
7357
TEST_ALLOC_FAIL {
7321
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7360
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7322
7361
&pos, &lineno);
7324
7363
if (test_alloc_failed) {
7357
7396
TEST_ALLOC_FAIL {
7360
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7399
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7361
7400
&pos, &lineno);
7363
7402
if (test_alloc_failed) {
7392
7431
TEST_ALLOC_FAIL {
7395
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7434
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7396
7435
&pos, &lineno);
7398
7437
if (test_alloc_failed) {
7427
7466
TEST_ALLOC_FAIL {
7430
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7469
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7431
7470
&pos, &lineno);
7433
7472
if (test_alloc_failed) {
7464
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7503
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7466
7505
TEST_EQ_P (job, NULL);
7483
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7522
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7485
7524
TEST_EQ_P (job, NULL);
7502
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7541
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7504
7543
TEST_EQ_P (job, NULL);
7521
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7560
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7523
7562
TEST_EQ_P (job, NULL);
7540
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7579
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7542
7581
TEST_EQ_P (job, NULL);
7559
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7598
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7561
7600
TEST_EQ_P (job, NULL);
7578
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7617
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7580
7619
TEST_EQ_P (job, NULL);
7597
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7636
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7599
7638
TEST_EQ_P (job, NULL);
7616
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7655
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7618
7657
TEST_EQ_P (job, NULL);
7635
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7674
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7637
7676
TEST_EQ_P (job, NULL);
7654
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7693
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7656
7695
TEST_EQ_P (job, NULL);
7681
7720
TEST_ALLOC_FAIL {
7684
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7723
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7685
7724
&pos, &lineno);
7687
7726
if (test_alloc_failed) {
7715
7754
TEST_ALLOC_FAIL {
7718
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7757
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7719
7758
&pos, &lineno);
7721
7760
if (test_alloc_failed) {
7751
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7790
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7753
7792
TEST_EQ_P (job, NULL);
7770
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7809
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7772
7811
TEST_EQ_P (job, NULL);
7797
7836
TEST_ALLOC_FAIL {
7800
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7839
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7801
7840
&pos, &lineno);
7803
7842
if (test_alloc_failed) {
7831
7870
TEST_ALLOC_FAIL {
7834
job = parse_job (NULL, NULL, "test", buf, strlen (buf),
7873
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf),
7835
7874
&pos, &lineno);
7837
7876
if (test_alloc_failed) {
7867
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7906
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7869
7908
TEST_EQ_P (job, NULL);
7886
job = parse_job (NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7925
job = parse_job (NULL, NULL, NULL, "test", buf, strlen (buf), &pos, &lineno);
7888
7927
TEST_EQ_P (job, NULL);