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