10 # Currently only testing the reset of patterns.
16 (shift =~ ?zlopp?) ? 1 : 0;
26 shift =~ ?ZZIP? ? 1 : 0;
35 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
36 is(aiieee::zlopp("zlopp"), 1, "match matches first time");
37 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
38 is(aiieee::zlopp("zlopp"), 0, "match doesn't match second time");
39 aiieee::reset_zlopp();
40 is(aiieee::zlopp("zlopp"), 1, "match matches after reset");
41 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
43 aiieee::reset_zlopp();
45 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
46 is(aiieee::zlopp("zlopp"), 1, "match matches first time");
47 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
48 is(CLINK::ZZIP("ZZIP"), 1, "match matches first time");
49 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
50 is(CLINK::ZZIP("ZZIP"), 0, "match doesn't match second time");
51 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
52 is(aiieee::zlopp("zlopp"), 0, "match doesn't match second time");
54 aiieee::reset_zlopp();
55 is(aiieee::zlopp("zlopp"), 1, "match matches after reset");
56 is(aiieee::zlopp(""), 0, "mismatch doesn't match");
58 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
59 is(CLINK::ZZIP("ZZIP"), 0, "match doesn't match third time");
62 is(CLINK::ZZIP("ZZIP"), 1, "match matches after reset");
63 is(CLINK::ZZIP(""), 0, "mismatch doesn't match");
71 eval {require threads; 1} or
74 = "Currently performs a read from free()d memory, and may crash";
75 foreach my $eight ('/', '?') {
76 foreach my $nine ('/', '?') {
78 $copy =~ s/8/$eight/gm;
79 $copy =~ s/9/$nine/gm;
80 fresh_perl_is($copy, "pass", "",
81 "first pattern $eight$eight, second $nine$nine");
91 # Note that there are no digits in this program, other than the placeholders
103 eval 'no warnings; sub b {}';
109 cond_wait($$l_r) until $$l_r eq "B";
115 my $lock : shared = "A";
121 $t = threads->new(\&lock_then_wipe, $r);
129 cond_wait($lock) until $lock eq "C";