aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/test_executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/test_executor.cc b/executor/test_executor.cc
index 96828a716..5b30286bf 100644
--- a/executor/test_executor.cc
+++ b/executor/test_executor.cc
@@ -207,7 +207,7 @@ static int test_one(int text_type, const char* text, int text_size, int flags, u
printf("/dev/kvm is not present\n");
return -1;
}
- if (errno == EPERM) {
+ if (errno == EPERM || errno == EACCES) {
printf("no permissions to open /dev/kvm\n");
return -1;
}