Re: [LTP] [PATCH] syscalls/open11: new open(2) test case

Wanlong Gao
2013-02-04T02:00:24Z

On 01/30/2013 06:57 PM, Eryu Guan wrote:
> + { /* open device special file O_WRONLY */
> + .desc = "Open device special file O_WRONLY",
> + .path = T_DEV,
> + .flags = O_WRONLY,
> + .mode = 0644,
> + .err = 0,
> + },
> + { /* open device special file O_RDWR */
> + .desc = "Open device special file O_RDWR",
> + .path = T_DEV,
> + .flags = O_RDWR,
> + .mode = 0644,
> + .err = 0,
> + },
> + { /* open device special file O_RDWR */
> + .desc = "Open device special file O_RDWR",
> + .path = T_DEV,
> + .flags = O_RDWR,
> + .mode = 0644,
> + .err = 0,
> + },

Why should this test twice?

Thanks,
Wanlong Gao

> + /*
> + * Test open(2) non-existing file
> + */
> + { /* open non-existing regular file in existing dir */
> + .desc = "Open non-existing regular file in existing dir",
> + .path = T_DIR"/"T_NEW_REG,
> + .flags = O_RDWR | O_CREAT,
> + .mode = 0644,
> + .err = 0,
> + },