From: Petr Machata Date: Thu, 15 May 2014 15:12:23 +0000 (+0200) Subject: In ppc-lwarx.exp, Dwarf backend may resolve atomic_add's prototype X-Git-Tag: accepted/tizen/common/20140822.152031~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86dcfff432c203d6494062d4a5b1c2b5141e62e1;p=platform%2Fupstream%2Fltrace.git 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. --- 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 }