[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fchownat test on AIX 7.1BETA
From: |
Rainer Tammer |
Subject: |
Re: fchownat test on AIX 7.1BETA |
Date: |
Sat, 31 Jul 2010 13:26:39 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Hello Bruno,
Bruno Haible wrote:
> Hello Rainer,
>
> Rainer Tammer wrote:
>
>>> test-chown.h:88: assertion failed
>>> FAIL: test-fchownat
>>>
>> test_chown(func = 0x20000d50, print = 1), line 88 in "test-chown.h"
>> main(), line 70 in "test-fchownat.c"
>>
> Can you please try and show the output of this test program? It's a candidate
> for an autoconf test.
>
> ===============================================================================
> #define _GNU_SOURCE 1
> #define _ALL_SOURCE 1
> #include <unistd.h>
> #include <fcntl.h>
> #include <errno.h>
> #include <stdio.h>
>
> int main ()
> {
> int fd;
> int err;
> int ret;
>
> /* Ensure a clean working area. */
> unlink ("conftestdir/file");
> rmdir ("conftestdir");
>
> /* Create a directory. */
> if (mkdir ("conftestdir", 0700) < 0)
> return 1;
> /* Create a regular file. */
> fd = open ("conftestdir/file", O_CREAT | O_EXCL | O_WRONLY, 0600);
> if (fd < 0)
> return 2;
> if (close (fd) < 0)
> return 3;
> /* Test whether a trailing "/" is treated like "/.". */
> ret = fchownat (AT_FDCWD, "conftestdir/file/", -1, -1, 0);
> err = errno;
> fprintf (stderr, "ret = %d\n", ret);
> if (ret < 0)
> {
> fprintf (stderr, "errno = %d\n", err);
> errno = err;
> perror ("");
> }
>
> return 0;
> }
> ===============================================================================
>
>
# ./testme
ret = 0
> Bruno
>
>
>
bye
Rainer
- Re: iconv test on AIX 7.1BETA, (continued)
- linkat test on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: linkat test on AIX 7.1BETA, Rainer Tammer, 2010/07/31
- Re: linkat test on AIX 7.1BETA, Bruno Haible, 2010/07/31
- Re: linkat test on AIX 7.1BETA, Rainer Tammer, 2010/07/31
- Re: linkat test on AIX 7.1BETA, Bruno Haible, 2010/07/31
- fchownat test on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: fchownat test on AIX 7.1BETA, Rainer Tammer, 2010/07/31
- Re: fchownat test on AIX 7.1BETA, Bruno Haible, 2010/07/31
- Re: fchownat test on AIX 7.1BETA,
Rainer Tammer <=
- Re: fchownat test on AIX 7.1BETA, Bruno Haible, 2010/07/31
- utimens, utimensat tests on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: utimens, utimensat tests on AIX 7.1BETA, Eric Blake, 2010/07/30
- duplocale test on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: duplocale test on AIX 7.1BETA, Rainer Tammer, 2010/07/31
- Re: duplocale test on AIX 7.1BETA, Bruno Haible, 2010/07/31
- Re: M4 1.4.14 on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: M4 1.4.14 on AIX 7.1BETA, Eric Blake, 2010/07/30
- [PATCH] mknod: be more vocal about danger of running tests as root, Eric Blake, 2010/07/30
- Re: M4 1.4.14 on AIX 7.1BETA, Rainer Tammer, 2010/07/31