summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2014-05-15 17:12:23 +0200
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:26 +0900
commit86dcfff432c203d6494062d4a5b1c2b5141e62e1 (patch)
tree7910a7092e7e7065b02201e8d3f40c94c47a4d73
parentdeb4d2cecbe758a88cf7ef2b0dfedb5969531d78 (diff)
downloadltrace-86dcfff432c203d6494062d4a5b1c2b5141e62e1.tar.gz
ltrace-86dcfff432c203d6494062d4a5b1c2b5141e62e1.tar.bz2
ltrace-86dcfff432c203d6494062d4a5b1c2b5141e62e1.zip
In ppc-lwarx.exp, Dwarf backend may resolve atomic_add's prototype
- in which case the patterns are wrong. Change the pattern to match both cases.
-rw-r--r--testsuite/ltrace.torture/ppc-lwarx.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/ltrace.torture/ppc-lwarx.exp b/testsuite/ltrace.torture/ppc-lwarx.exp
index bc2eba4..a081d3b 100644
--- a/testsuite/ltrace.torture/ppc-lwarx.exp
+++ b/testsuite/ltrace.torture/ppc-lwarx.exp
@@ -1,5 +1,5 @@
# This file is part of ltrace.
-# Copyright (C) 2012 Petr Machata, Red Hat Inc.
+# Copyright (C) 2012, 2014 Petr Machata, Red Hat Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -46,10 +46,10 @@ if { [istarget powerpc*-*] } then {
return
}
- set pattern "atomic_add(.*, 5,.*)"
+ set pattern "atomic_add(.*, 5\\b.*"
ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
- set pattern "atomic_add(.*, 10,.*)"
+ set pattern "atomic_add(.*, 10\\b.*"
ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
- set pattern "atomic_add(.*, 15,.*)"
+ set pattern "atomic_add(.*, 15\\b.*"
ltrace_verify_output ${objdir}/${subdir}/${testfile}.ltrace $pattern 1
}