#include "vmapi/hf/call.h" | |
#include "hftest.h" | |
TEST(hf_vm_get_count, no_secondary_vms) | |
{ | |
EXPECT_EQ(hf_vm_get_count(), 1); | |
} | |
TEST(hf_vcpu_get_count, primary_has_at_least_one) | |
{ | |
EXPECT_GE(hf_vcpu_get_count(0), 0); | |
} | |
TEST(hf_vcpu_get_count, no_secondary_vms) | |
{ | |
EXPECT_EQ(hf_vcpu_get_count(1), -1); | |
} | |
TEST(hf_vcpu_get_count, large_invalid_vm_index) | |
{ | |
EXPECT_EQ(hf_vcpu_get_count(0xffffffff), -1); | |
} |