Fix gdb.base/print-file-var-main.c value check logic
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / print-file-var-main.c
index 0a229e5235534b1a241094c09c1be3db94a033f2..a19f6f7559ed149842381cae0c221456c69c6830 100644 (file)
@@ -23,12 +23,12 @@ main (void)
   int v1 = get_version_1 ();
   int v2 = get_version_2 ();
 
-  if (v1 != 104)  /* STOP */
+  if (v1 != 104)
     return 1;
   /* The value returned by get_version_2 depends on the target system.  */
-  if (v2 != 104 || v2 != 203)
+  if (v2 != 104 && v2 != 203)
     return 2;
 
-  return 0;
+  return 0; /* STOP */
 }
 
This page took 0.024243 seconds and 4 git commands to generate.