summaryrefslogtreecommitdiff
path: root/tests/vboot_audio_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vboot_audio_tests.c')
-rw-r--r--tests/vboot_audio_tests.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/vboot_audio_tests.c b/tests/vboot_audio_tests.c
index 4cc6ab28..c392c0d9 100644
--- a/tests/vboot_audio_tests.c
+++ b/tests/vboot_audio_tests.c
@@ -216,16 +216,9 @@ static void VbAudioTest(void) {
}
-int main(int argc, char* argv[]) {
- int error_code = 0;
-
+int main(int argc, char* argv[])
+{
VbAudioTest();
- if (!gTestSuccess)
- error_code = 255;
-
- if (vboot_api_stub_check_memory())
- error_code = 255;
-
- return error_code;
+ return gTestSuccess ? 0 : 255;
}