diff options
author | Tomas Volf <~@wolfsden.cz> | 2024-08-10 00:54:31 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-10-20 21:22:23 +0200 |
commit | 8579b73abace8c3e3469b23883190be0ce431b53 (patch) | |
tree | e8e144552ce35a3987ee8af0af12d76dbd02de76 /test-suite/tests/posix.test | |
parent | 0ceb0036c3a2efdd8d5b0da0c68d15b67fe24689 (diff) | |
download | guile-8579b73abace8c3e3469b23883190be0ce431b53.tar.gz |
tests: Skip mkdtemp test for invalid template on Darwin.
Darwin accepts any template, as demonstrated here:
#include <stdio.h>
#include <unistd.h>
int
main(void)
{
char template[] = {'T', '-', 'A', 'A', 'A', 'A', 'A', 'A', '\0'};
char *res = mkdtemp(template);
puts(res ? res : "(null)");
perror("mkdtemp");
}
Outputs:
T-AAAAAA
mkdtemp: Undefined error: 0
This does not match prescribed POSIX behavior, but it is what it is.
* test-suite/tests/filesys.test (skip-on-darwin): New procedure.
("mkdtemp")["invalid template"]: Skip on Darwin.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'test-suite/tests/posix.test')
0 files changed, 0 insertions, 0 deletions