Message ID | 20210718151746.40010-1-ebiggers@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | generic/423: test stx_size of symlink | expand |
diff --git a/tests/generic/423 b/tests/generic/423 index 3de2f30c..69c1c3bc 100755 --- a/tests/generic/423 +++ b/tests/generic/423 @@ -110,13 +110,15 @@ check_stat $TEST_DIR/$seq-file \ stx_nlink=1 echo "Test statx on a symlink" -ln -s $TEST_DIR/$seq-nowhere $TEST_DIR/$seq-symlink +target=$TEST_DIR/$seq-nowhere +ln -s $target $TEST_DIR/$seq-symlink check_stat $TEST_DIR/$seq-symlink \ ts_order \ ref=$TEST_DIR/$seq-file \ ts=B,b \ ts=M,m \ stx_type=sym \ + stx_size=${#target} \ stx_rdev_major=0 \ stx_rdev_minor=0 \ stx_nlink=1