Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
30193198
Commit
30193198
authored
Apr 10, 2012
by
pcapriotti
Browse files
Add testcase for
#5930
.
parent
75efe3ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
libraries/base/tests/System/T5930.hs
0 → 100644
View file @
30193198
import
Control.Monad
(
when
)
import
Data.Maybe
(
isJust
)
import
System.Environment
(
lookupEnv
)
main
::
IO
()
main
=
do
term
<-
lookupEnv
"PATH"
when
(
isJust
term
)
$
putStrLn
"Got PATH"
fish
<-
lookupEnv
"One fish, two fish, red fish, blue fish"
print
fish
libraries/base/tests/System/T5930.stdout
0 → 100644
View file @
30193198
Got PATH
Nothing
libraries/base/tests/System/all.T
View file @
30193198
...
...
@@ -2,6 +2,7 @@
test
('
exitWith001
',
exit_code
(
42
),
compile_and_run
,
[''])
test
('
getArgs001
',
normal
,
compile_and_run
,
[''])
test
('
getEnv001
',
normal
,
compile_and_run
,
[''])
test
('
T5930
',
normal
,
compile_and_run
,
[''])
test
('
system001
',
if_platform
("
i386-unknown-mingw32
",
expect_fail
),
\
compile_and_run
,
[''])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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