-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
idris_support: fix environ for macOS (#3324)
* idris_support: fix environ for macOS * Add test that touches the new implementation of environ --------- Co-authored-by: Sergey Fedorov <[email protected]> Co-authored-by: Mathew Polzin <[email protected]>
- Loading branch information
1 parent
efce152
commit 1931509
Showing
4 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import System | ||
|
||
main : IO () | ||
main = do | ||
env <- getEnvironment | ||
-- it better be non-empty because we set a variable before starting this test | ||
printLn $ null env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
. ../../testutils.sh | ||
|
||
idris2 --cg chez -o test Test.idr | ||
HELLO=hi ./build/exec/test |