Skip to content

Commit a540679

Browse files
author
Michael Vasseur
committed
Add extra test to detect the error
1 parent 6c1fcc8 commit a540679

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/jobs/configure-checks/all.bats

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ setup() {
4040
repo-install gcc g++ libcgroup-dev composer
4141
}
4242

43+
run_user_stderr () {
44+
su $u -c "$*" 2>&1
45+
}
46+
4347
run_configure () {
4448
su $u -c "./configure $*"
4549
}
@@ -454,3 +458,18 @@ compile_assertions_finished () {
454458
run make judgehost
455459
assert_failure
456460
}
461+
462+
@test "'Make distclean' has all permissions" {
463+
if [ "$distro_id" = "ID=fedora" ]; then
464+
# Fails as libraries are not found
465+
skip
466+
fi
467+
setup
468+
run run_configure
469+
run_user_stderr make domserver
470+
make install-domserver
471+
run_user_stderr make distclean
472+
refute_partial "cannot remove"
473+
refute_partial "Permission denied"
474+
assert_success
475+
}

0 commit comments

Comments
 (0)