Permalink
Browse files

Make note of busybox difference

  • Loading branch information...
Andy Chu
Andy Chu committed Jun 15, 2018
1 parent 8e7d1c5 commit 9b16199321d6b5f72ebe397d0408a17464e3039e
Showing with 9 additions and 2 deletions.
  1. +7 −0 gold/readlink.sh
  2. +2 −2 tools/readlink.py
View
@@ -25,6 +25,13 @@ test-readlink() {
readlink -f /nonexistent/foo
echo $?
return
# NOTE: busybox doesn't accept multiple arguments.
echo 'Multiple arguments with an error in the middle'
readlink -f _tmp/gold-bin/readlink /nonexistent/foo libc.so
echo $?
}
# For this readlink gold test, we need a custom test driver.
View
@@ -1,7 +1,7 @@
#!/usr/bin/python
from __future__ import print_function
"""
readlink.py
readlink.py - Minimal implementation of readlink -f, e.g. for OS X.
"""
import libc
@@ -19,6 +19,6 @@ def main(argv):
for arg in argv[i:]:
res = libc.realpath(arg)
if res == -1:
return 1
return 1
print(res)
return 0

0 comments on commit 9b16199

Please sign in to comment.