-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
small changes to be able to run test on MacOs
set LC_ALL=C to avoid utf8 warning on macos generate the tempdir differently so this working on Macos ( still working on linux ) keep the tempdir when we have a failure add a regeression test for readlink
- Loading branch information
Showing
3 changed files
with
41 additions
and
15 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,25 @@ | ||
The `readlink()` function will follow symbolink link to find the real name of the file | ||
input to compile from the specified file path instead. | ||
|
||
-- Testcase -- | ||
{% | ||
import { readlink } from 'fs'; | ||
system('touch ./files/test_69.txt'); | ||
system('ls -1 ./files/test_69.txt'); | ||
system('ln -s ./files/test_69.txt ./files/test_symlink.txt'); | ||
system('ls -1 ./files/test_symlink.txt'); | ||
|
||
final_name=readlink('./files/test_symlink.txt'); | ||
print(final_name,"\n"); | ||
%} | ||
-- End -- | ||
|
||
-- File test_69.txt -- | ||
test 69 in test_69.txt | ||
-- End -- | ||
|
||
-- Expect stdout -- | ||
./files/test_69.txt | ||
./files/test_symlink.txt | ||
./files/test_69.txt | ||
-- End -- |
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