BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
+ unshift @INC, '../lib';
}
print "1..2\n";
# i'll probably get in trouble for this :)
} else {
# does it run?
- $ok = system("./perl -I../lib ../utils/h2ph -d. lib/h2ph.h");
+ $ok = system("./perl -I../lib ../utils/h2ph -d. -Q lib/h2ph.h");
print(($ok == 0 ? "" : "not "), "ok 1\n");
# does it work? well, does it do what we expect? :-)
# cleanup - should this be in an END block?
unlink("lib/h2ph.ph");
+ unlink("_h2ph_pre.ph");
}