Fix compilation in Debug configuration

This commit is contained in:
Paweł Bylica 2018-08-29 22:56:55 +02:00
parent e43026cf9f
commit 6768aa888e
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 4 additions and 0 deletions

View File

@ -45,10 +45,14 @@ TEST_F(evmc_vm_test, execute)
// Validate some constraints
if (result.status_code != EVMC_SUCCESS && result.status_code != EVMC_REVERT)
{
EXPECT_EQ(result.gas_left, 0);
}
if (result.output_data == NULL)
{
EXPECT_EQ(result.output_size, 0);
}
if (result.release)
result.release(&result);