This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add a test for linker ASSERT


Hi,

I checked in this patch to add a test for linker ASSERT.

H.J.
---
2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-scripts/assert.exp: Run assert2.

	* ld-scripts/assert2.d: New.
	* ld-scripts/assert2.t: Likewise.

diff --git a/ld/testsuite/ld-scripts/assert.exp b/ld/testsuite/ld-scripts/assert.exp
index 1de9001..b4169ac 100644
--- a/ld/testsuite/ld-scripts/assert.exp
+++ b/ld/testsuite/ld-scripts/assert.exp
@@ -32,3 +32,5 @@ if ![ld_simple_link $ld tmpdir/assert "-T $srcdir/$subdir/assert.t tmpdir/assert
 } else {
     pass $testname
 }
+
+run_dump_test "assert2"
--- /dev/null	2011-01-07 14:34:23.465000001 -0800
+++ binutils/ld/testsuite/ld-scripts/assert2.d	2011-01-10 06:32:36.049527155 -0800
@@ -0,0 +1,3 @@
+# source: assert.s
+# ld: -T assert2.t
+# error: assert failed.
--- /dev/null	2011-01-07 14:34:23.465000001 -0800
+++ binutils/ld/testsuite/ld-scripts/assert2.t	2011-01-10 06:31:34.899712085 -0800
@@ -0,0 +1 @@
+ASSERT(2 * 2 == 5, "assert failed");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]