mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-08-04 02:06:31 -04:00
scripts/gzip_tests.sh: when root, skip test that requires non-root
This commit is contained in:
parent
9f257c0123
commit
7be9d514f8
@ -363,6 +363,7 @@ assert_skipped gunzip 1.gz 2.gz
|
|||||||
cmp 2 file
|
cmp 2 file
|
||||||
|
|
||||||
|
|
||||||
|
if (( $(id -u) != 0 )); then
|
||||||
begin_test 'Multiple files, continue on error'
|
begin_test 'Multiple files, continue on error'
|
||||||
cp file 1
|
cp file 1
|
||||||
cp file 2
|
cp file 2
|
||||||
@ -376,6 +377,7 @@ chmod a-r 1.gz
|
|||||||
assert_error 'Permission denied' gunzip 1.gz 2.gz
|
assert_error 'Permission denied' gunzip 1.gz 2.gz
|
||||||
[ ! -e 1 ]
|
[ ! -e 1 ]
|
||||||
cmp 2 file
|
cmp 2 file
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
begin_test 'Compressing empty file'
|
begin_test 'Compressing empty file'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user