From 7b96fa44e1a1b0c6c6369f899b378eee7583a419 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 14 Jun 2017 13:43:53 +0200 Subject: executor: handle EACCES errno when opening /dev/kvm in test --- executor/test_executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/test_executor.cc') 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; } -- cgit mrf-deployment