KVM platform does not support 32bit.

Fixes: //test/syscalls:32bit_test_runsc_kvm
Ref change: 5d569408ef
PiperOrigin-RevId: 292563926
This commit is contained in:
Ting-Yu Wang 2020-01-31 09:55:51 -08:00 committed by gVisor bot
parent 14959250fe
commit 7c118f7e19
1 changed files with 2 additions and 3 deletions

View File

@ -20,10 +20,9 @@ namespace gvisor {
namespace testing {
PlatformSupport PlatformSupport32Bit() {
if (GvisorPlatform() == Platform::kPtrace) {
if (GvisorPlatform() == Platform::kPtrace ||
GvisorPlatform() == Platform::kKVM) {
return PlatformSupport::NotSupported;
} else if (GvisorPlatform() == Platform::kKVM) {
return PlatformSupport::Segfault;
} else {
return PlatformSupport::Allowed;
}