import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / all-bin.exp
index 4d6662b25813e903ae953686feebcd84a7f55ad5..5208ef391ef88ff7ed6fd958e8c1a75b516016e2 100644 (file)
@@ -45,6 +45,10 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
     }
 
+if [get_compiler_info ${binfile}] {
+    return -1
+}
+
 gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
@@ -206,7 +210,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_short\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int<=v_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_short" }
@@ -236,7 +240,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_signed_short\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int<=v_signed_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_signed_short" }
@@ -246,7 +250,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_unsigned_short\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int<=v_unsigned_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_unsigned_short" }
@@ -256,7 +260,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_signed_int\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_signed_int"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_signed_int" }
@@ -266,7 +270,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_unsigned_int\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_unsigned_int"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_unsigned_int" }
@@ -276,7 +280,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_long\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_long" }
@@ -286,7 +290,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_signed_long\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_signed_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_signed_long" }
@@ -296,7 +300,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_unsigned_long\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_unsigned_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_unsigned_long" }
@@ -306,7 +310,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_float\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_float"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_float" }
@@ -316,7 +320,7 @@ gdb_expect {
 
 send_gdb "print v_int <= v_double\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int<=v_double"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int<=v_double" }
@@ -335,7 +339,7 @@ gdb_test "set variable v_unsigned_long=0" "" "set v_unsigned_long=0"
 
 send_gdb "print v_int && v_char\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int&&v_char"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_char" }
@@ -344,7 +348,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_short\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_short" }
@@ -354,7 +358,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_signed_char\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_signed_char"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_signed_char" }
@@ -364,7 +368,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_unsigned_char\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_unsigned_char"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_unsigned_char" }
@@ -374,7 +378,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_signed_short\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_signed_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_signed_short" }
@@ -384,7 +388,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_unsigned_short\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_unsigned_short"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_unsigned_short" }
@@ -394,7 +398,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_signed_int\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_signed_int"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_signed_int" }
@@ -404,7 +408,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_unsigned_int\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_unsigned_int"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_unsigned_int" }
@@ -414,7 +418,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_long\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_long" }
@@ -424,7 +428,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_signed_long\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_signed_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_signed_long" }
@@ -434,7 +438,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_unsigned_long\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int&&v_unsigned_long"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_unsigned_long" }
@@ -444,7 +448,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_float\n"
 gdb_expect {
-    -re ".*1.*$gdb_prompt $" {
+    -re ".*$true.*$gdb_prompt $" {
         pass "print value of v_int&&v_float"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_float" }
@@ -454,7 +458,7 @@ gdb_expect {
 
 send_gdb "print v_int && v_double\n"
 gdb_expect {
-    -re ".*0.*$gdb_prompt $" {
+    -re ".*$false.*$gdb_prompt $" {
         pass "print value of v_int&&v_double"
       }
     -re ".*$gdb_prompt $" { fail "print value of v_int&&v_double" }
This page took 0.028296 seconds and 4 git commands to generate.