Fix test_parse with no executable backend
authorPascal Terjan <pterjan@google.com>
Wed, 4 May 2016 09:36:21 +0000 (09:36 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 4 May 2016 11:15:34 +0000 (12:15 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=765953

testsuite/test_parse.c

index 65b17e9..87fa4ea 100644 (file)
@@ -38,7 +38,7 @@ main (int argc, char *argv[])
       printf ("%s\n", programs[i]->name);
     orc_test_compare_output_full (programs[i], 0);
     cres = orc_program_compile (programs[i]);
-    if (cres != ORC_COMPILE_RESULT_OK) {
+    if (ORC_COMPILE_RESULT_IS_FATAL (cres)) {
       fprintf (stderr, "compile error: %d\n", cres);
       error = TRUE;
     }
@@ -55,7 +55,7 @@ main (int argc, char *argv[])
       printf ("%s\n", programs[i]->name);
     orc_test_compare_output_full (programs[i], 0);
     cres = orc_program_compile (programs[i]);
-    if (cres != ORC_COMPILE_RESULT_OK) {
+    if (ORC_COMPILE_RESULT_IS_FATAL (cres)) {
       fprintf (stderr, "compile error: %d\n", cres);
       error = TRUE;
     }