Skip to content

Commit

Permalink
Clearly state that tests cannot be run under root
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Filak <jfilak@redhat.com>
  • Loading branch information
Jakub Filak committed Jul 13, 2015
1 parent a551b9d commit 81a744f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ distclean:

.PHONY: check
check: build
cd $(OUT_DIR) && make test
if [ "_0" != "_$$(id -u)" ]; then cd $(OUT_DIR) && make test; else echo "Cannot run tests under root user."; exit 1; fi
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,7 @@ $ make rpm
$ make distclean

All build results are stored in ./bin directory.

The `check' make target will fail if you run it under root user. There are some
test cases that try to generate 'File Access Denied' exceptions and the easiest
way to achieve that is to try to access a root's file.

0 comments on commit 81a744f

Please sign in to comment.