Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
886e7fe9
Commit
886e7fe9
authored
Aug 20, 2001
by
simonmar
Browse files
[project @ 2001-08-20 14:58:10 by simonmar]
print contents of the file that should have been empty, in verbose mode
parent
cdd58a98
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/config/vanilla-test.T
View file @
886e7fe9
...
...
@@ -98,16 +98,15 @@ def say_fail_because_noteq ( $filename1, $filename2 )
fi
}
def say_fail_because_output_produced (
$filename1
)
{
print
"
---
FAIL
because
the
program
produced
non
-
empty
output:
"
print
"
---
"
++
$filename1
}
def say_fail_because_nonempty (
$filename1
)
{
print
"
---
FAIL
because
the
following
file
is
non
-
empty:
"
print
"
---
"
++
$filename1
if defined
$verbose
then
print
"
---
contents:
"
print (contents
$filename1
)
print (
"
---
end
of
"
++
$filename1
)
fi
}
def say_fail_because_compiler_barfd (
$res
)
...
...
@@ -243,7 +242,7 @@ def check_stdout_ok()
if not ( exists(
$s_stdout
) )
then if ((contents
$r_stdout
) ==
""
)
then return True
else say_fail_because_
output_produced
(
$r_stdout
)
else say_fail_because_
nonempty
(
$r_stdout
)
return False
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment