mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-16 08:10:43 -08:00
New unit
new file Copied from Perforce Change: 19558 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
f7c41cd024
commit
a00614422c
1 changed files with 25 additions and 0 deletions
25
mps/qa/test/script/display
Normal file
25
mps/qa/test/script/display
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/local/perl
|
||||
# $HopeName: MMQA_harness!script:logging(trunk.4) $
|
||||
#
|
||||
# provide a subroutine to pretty-print tests to a
|
||||
# output stream
|
||||
#
|
||||
|
||||
1;
|
||||
|
||||
sub display_test_source {
|
||||
local ($file, $stream, $width) = @_;
|
||||
|
||||
unless (open(IN, $file)) {
|
||||
die "File ".$infile." unexpectedly not found.\n";
|
||||
}
|
||||
|
||||
$l = "";
|
||||
|
||||
while (<IN>) {
|
||||
print $stream $_;
|
||||
}
|
||||
|
||||
close(IN);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue