From c9bc6d888acae31dabca0a234d97189d97d43958 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 8 Aug 2014 16:53:41 +0200 Subject: In config files, allow whitespace between identifier and opening paren --- testsuite/ltrace.main/parameters2.exp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/ltrace.main/parameters2.exp b/testsuite/ltrace.main/parameters2.exp index 6318fc5..9850079 100644 --- a/testsuite/ltrace.main/parameters2.exp +++ b/testsuite/ltrace.main/parameters2.exp @@ -1,5 +1,5 @@ # This file is part of ltrace. -# Copyright (C) 2012, 2013 Petr Machata, Red Hat Inc. +# Copyright (C) 2012, 2013, 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 @@ -259,4 +259,16 @@ ltraceMatch1 [ltraceLibTest { somefunc(); }] {somefunc\(\) *= nil} == 1 +# Test that spaces in function name make no difference. + +ltraceMatch1 [ltraceLibTest { + void somefunc (); +} { + void somefunc(void); +} { + void somefunc(void) {} +} { + somefunc(); +}] {somefunc\(\)} == 1 + ltraceDone -- cgit v1.2.3