3af6aabe52
* tests/readlink.c: New file. * tests/readlink.awk: Likewise. * tests/readlinkat.c: Likewise. * tests/readlinkat.awk: Likewise. * tests/readlink.test: New test. * tests/readlinkat.test: Likewise. * tests/Makefile.am (check_PROGRAMS): Add readlink and readlinkat. (TESTS): Add readlink.test and readlinkat.test. (EXTRA_DIST): Add readlink.awk and readlinkat.awk. * tests/.gitignore: Add readlink and readlinkat.
11 lines
336 B
Awk
11 lines
336 B
Awk
BEGIN {
|
|
pathname = "\\\\x72\\\\x65\\\\x61\\\\x64\\\\x6c\\\\x69\\\\x6e\\\\x6b\\\\x61\\\\x74\\\\x2e\\\\x6c\\\\x69\\\\x6e\\\\x6b"
|
|
buf = "\\\\x72\\\\x65\\\\x61"
|
|
r[1] = "^readlinkat\\(AT_FDCWD, \"" pathname "\", \"" buf "\"\\.\\.\\., 31\\) += 12"
|
|
r[2] = "^\\+\\+\\+ exited with 0 \\+\\+\\+$"
|
|
lines = 2
|
|
fail = 0
|
|
}
|
|
|
|
@include "match.awk"
|