aboutsummaryrefslogtreecommitdiff
path: root/tests/basename.test
AgeCommit message (Collapse)Author
2018-11-13basename: -s SUFFIX.Elliott Hughes
AOSP doesn't need -a specifically, but since it's needed for -s we may as well accept it too.
2017-04-04Add "testcmd" function as an alternative to "testing" for tests/*.test, andRob Landley
check in two converted commands.
2016-03-25basename: fix segfault on null input; add testsSamuel Holland
When passed an empty string, glibc's basename() returns a pointer to the string "." in read-only memory. If an empty suffix is given, it fits the condition of being shorter than the path, so we try to overwrite the null byte and crash. Fix this by just ignoring empty suffixes; they don't do anything anyway.
2016-03-02Factor out command name at the start of test name, have runtest.sh print it.Rob Landley
2014-09-20Move testsuite out of scripts/test into its own top level tests directory, ↵Rob Landley
and make ctrl-c kill "make test" more reliably.