diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-06-14 13:43:53 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-06-14 13:43:53 +0200 |
| commit | 7b96fa44e1a1b0c6c6369f899b378eee7583a419 (patch) | |
| tree | 9e4b8fd94afcf2c0fd703611bc19f973e6d341f2 /executor | |
| parent | c64814428a9d0a7052e0ae38e0fb86ed5f60b524 (diff) | |
executor: handle EACCES errno when opening /dev/kvm in test
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/test_executor.cc | 2 |
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; } |
