[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b1cc37144038958a469c8f70a5f47a6a5638636a.1521003603.git.luto@kernel.org>
Date: Tue, 13 Mar 2018 22:03:10 -0700
From: Andy Lutomirski <luto@...nel.org>
To: x86@...nel.org, LKML <linux-kernel@...r.kernel.org>
Cc: Borislav Petkov <bp@...en8.de>, Stas Sergeev <stsp@...t.ru>,
bartoldeman@...il.com, Brian Gerst <brgerst@...il.com>,
Andy Lutomirski <luto@...nel.org>, stable@...r.kernel.org
Subject: [PATCH 1/3] selftests/x86/entry_from_vm86: Exit with 1 if we fail
Fix a logic error that caused the test to exit with 0 even if test
cases failed.
Cc: stable@...r.kernel.org
Signed-off-by: Andy Lutomirski <luto@...nel.org>
---
tools/testing/selftests/x86/entry_from_vm86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/x86/entry_from_vm86.c b/tools/testing/selftests/x86/entry_from_vm86.c
index 361466a2eaef..6e85f0d0498d 100644
--- a/tools/testing/selftests/x86/entry_from_vm86.c
+++ b/tools/testing/selftests/x86/entry_from_vm86.c
@@ -318,7 +318,7 @@ int main(void)
clearhandler(SIGSEGV);
/* Make sure nothing explodes if we fork. */
- if (fork() > 0)
+ if (fork() == 0)
return 0;
return (nerrs == 0 ? 0 : 1);
--
2.14.3
Powered by blists - more mailing lists