Add testcase for PR/24065.
authorTamar Christina <tamar.christina@arm.com>
Tue, 8 Jan 2019 14:52:53 +0000 (14:52 +0000)
committerTamar Christina <tamar.christina@arm.com>
Tue, 8 Jan 2019 14:58:03 +0000 (14:58 +0000)
This adds a new testcase for objcopy -O ihex to test
that it correctly works.

binutils/ChangeLog:

PR 24065
* testsuite/binutils-all/copy-6.d: New test.
* testsuite/binutils-all/objcopy.exp: Use it.

binutils/ChangeLog
binutils/testsuite/binutils-all/copy-6.d [new file with mode: 0644]
binutils/testsuite/binutils-all/objcopy.exp

index d64f51018921644de9313b39b94a34b76a92b672..2890532c187b9855826db1e42b207f0db4173f72 100644 (file)
@@ -1,3 +1,9 @@
+2019-01-08  Tamar Christina  <tamar.christina@arm.com>
+
+       PR 24065
+       * testsuite/binutils-all/copy-6.d: New test.
+       * testsuite/binutils-all/objcopy.exp: Use it.
+
 2019-01-08  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
diff --git a/binutils/testsuite/binutils-all/copy-6.d b/binutils/testsuite/binutils-all/copy-6.d
new file mode 100644 (file)
index 0000000..b6b856f
--- /dev/null
@@ -0,0 +1,8 @@
+#PROG: objcopy
+#source: bintest.s
+#objcopy: -O ihex
+# A few targets cannot assemble the bintest.s source file...
+#notarget: pdp11-* *-darwin
+#name: ihex objcopy test
+#objdump: -h
+#...
index d8bfca8c11c6058b4e5771bc1c5807cfd938ee4f..921e6a23c4f2f3c12169d8941d1c4f7912589e81 100644 (file)
@@ -1076,6 +1076,7 @@ run_dump_test "copy-2"
 run_dump_test "copy-3"
 run_dump_test "copy-4"
 run_dump_test "copy-5"
+run_dump_test "copy-6"
 
 # Use bintest.o from the copy-4 test to determine ELF reloc type
 set reloc_format rel
This page took 0.027233 seconds and 4 git commands to generate.