Skip to content

Commit

Permalink
Add extra test to detect the error
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur committed Oct 27, 2024
1 parent 6c1fcc8 commit a540679
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/jobs/configure-checks/all.bats
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ setup() {
repo-install gcc g++ libcgroup-dev composer
}

run_user_stderr () {
su $u -c "$*" 2>&1
}

run_configure () {
su $u -c "./configure $*"
}
Expand Down Expand Up @@ -454,3 +458,18 @@ compile_assertions_finished () {
run make judgehost
assert_failure
}

@test "'Make distclean' has all permissions" {
if [ "$distro_id" = "ID=fedora" ]; then
# Fails as libraries are not found
skip
fi
setup
run run_configure
run_user_stderr make domserver
make install-domserver
run_user_stderr make distclean
refute_partial "cannot remove"
refute_partial "Permission denied"
assert_success
}

0 comments on commit a540679

Please sign in to comment.