From 6343d9e51dff0b86bd5b6d9f6aca2e155aba5549 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 17 Oct 2002 11:15:14 +0000 Subject: Add a test from Alex King which shows a failure in ptsname when ASSUME_DEVPTS=false -Erik --- test/stdlib/ptytest.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/stdlib/ptytest.c (limited to 'test/stdlib/ptytest.c') diff --git a/test/stdlib/ptytest.c b/test/stdlib/ptytest.c new file mode 100644 index 000000000..e85072e76 --- /dev/null +++ b/test/stdlib/ptytest.c @@ -0,0 +1,19 @@ +#include +#include +#include +#include +#include + +int main() +{ + int fd; + char *cp; + + fd=open("/dev/ptmx",O_NOCTTY|O_RDWR); + cp=ptsname(fd); + if (cp==NULL) + return EXIT_FAILURE; + printf("ptsname %s\n",cp); + return EXIT_SUCCESS; +} + -- cgit v1.2.3