From: Eric Anholt Date: Thu, 25 Mar 2010 21:37:25 +0000 (-0700) Subject: Make the standalone parser return an exit code so we can automate testing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c15bb2465b2c22a7de810b399b4aa7bfa1467c0;p=mesa.git Make the standalone parser return an exit code so we can automate testing. --- diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index b774d8b5f4e..a02865887fc 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -657,5 +657,5 @@ main(int argc, char **argv) delete state.symbols; - return 0; + return state.error != 0; }