summaryrefslogtreecommitdiff
path: root/tests/vboot_region_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vboot_region_tests.c')
-rw-r--r--tests/vboot_region_tests.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/vboot_region_tests.c b/tests/vboot_region_tests.c
index d087f0ad..464461c7 100644
--- a/tests/vboot_region_tests.c
+++ b/tests/vboot_region_tests.c
@@ -194,15 +194,9 @@ static void VbRegionReadTest(void) {
VBERROR_NO_DISK_FOUND, "Kernel");
}
-int main(int argc, char* argv[]) {
- int error_code = 0;
-
+int main(int argc, char* argv[])
+{
VbRegionReadTest();
- if (vboot_api_stub_check_memory())
- error_code = 255;
- if (!gTestSuccess)
- error_code = 255;
-
- return error_code;
+ return gTestSuccess ? 0 : 255;
}