Update copyright year range in all GDB files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / gdb11530.exp
index bc569712fe4e3156992e5f808888c1d20d99b22e..4c4ea9c29c6bb2265b4de3393a212cdc44feb6fa 100644 (file)
@@ -1,6 +1,6 @@
 # This testcase is part of GDB, the GNU debugger.
 
-# Copyright 2010, 2011 Free Software Foundation, Inc.
+# Copyright 2010-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Test GDB bug report 11530.
 # This is a problem related unnamed unions.
 
-if $tracelevel then {
-       strace $tracelevel
-}
-
-set testfile "gdb11530"
-set binfile ${testfile}${EXEEXT}
+standard_testfile
 
 # Unnamed union is a GNU extension, thus we restrict the test
 # to gcc compiler.
 
-if [get_compiler_info ${binfile}] {
-    return -1;
+if [get_compiler_info] {
+    return -1
 }
 
 if { ![test_compiler_info gcc*] } {
-    return 0;
+    return 0
 }
 
-if { [prepare_for_testing $testfile.exp $testfile $testfile.c {debug}] } {
-    return -1;
+if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
+    return -1
 }
 
 
This page took 0.038784 seconds and 4 git commands to generate.