diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mkdirat-3.sh | 7 | ||||
-rw-r--r-- | tests/mkdirat.at | 1 | ||||
-rwxr-xr-x | tests/openat-2.sh | 9 | ||||
-rw-r--r-- | tests/openat.at | 1 | ||||
-rwxr-xr-x | tests/unlinkat-4.sh | 7 | ||||
-rw-r--r-- | tests/unlinkat.at | 1 |
6 files changed, 26 insertions, 0 deletions
diff --git a/tests/mkdirat-3.sh b/tests/mkdirat-3.sh new file mode 100755 index 0000000..fe20579 --- /dev/null +++ b/tests/mkdirat-3.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# verify mkdirat("") returns ENOENT in various ways #346929 + +set -e +mkdirat-0 -1,ENOENT .:O_DIRECTORY '' 0 + +mkdirat-0 -1,ENOENT -3 '' 0 diff --git a/tests/mkdirat.at b/tests/mkdirat.at index d364b4b..eec4638 100644 --- a/tests/mkdirat.at +++ b/tests/mkdirat.at @@ -1,2 +1,3 @@ SB_CHECK(1) SB_CHECK(2) +SB_CHECK(3) diff --git a/tests/openat-2.sh b/tests/openat-2.sh new file mode 100755 index 0000000..b615c2d --- /dev/null +++ b/tests/openat-2.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# verify openat("") returns ENOENT in various ways #346929 + +set -e +openat-0 -1,ENOENT .:O_DIRECTORY '' O_RDONLY 0 +openat-0 -1,ENOENT .:O_DIRECTORY '' 'O_CREAT|O_WRONLY' 0 + +openat-0 -1,ENOENT -3 '' O_RDONLY 0 +openat-0 -1,ENOENT -3 '' 'O_CREAT|O_WRONLY' 0 diff --git a/tests/openat.at b/tests/openat.at index 081d7d2..d364b4b 100644 --- a/tests/openat.at +++ b/tests/openat.at @@ -1 +1,2 @@ SB_CHECK(1) +SB_CHECK(2) diff --git a/tests/unlinkat-4.sh b/tests/unlinkat-4.sh new file mode 100755 index 0000000..4b23107 --- /dev/null +++ b/tests/unlinkat-4.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# verify unlinkat("") returns ENOENT in various ways #346929 + +set -e +unlinkat-0 -1,ENOENT .:O_DIRECTORY '' 0 + +unlinkat-0 -1,ENOENT -3 '' 0 diff --git a/tests/unlinkat.at b/tests/unlinkat.at index eec4638..1909650 100644 --- a/tests/unlinkat.at +++ b/tests/unlinkat.at @@ -1,3 +1,4 @@ SB_CHECK(1) SB_CHECK(2) SB_CHECK(3) +SB_CHECK(4) |