summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2014-08-08 16:53:41 +0200
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:27 +0900
commitc9bc6d888acae31dabca0a234d97189d97d43958 (patch)
treed0d8c2ead137c186d231d9aecbd66a913c01962b /testsuite
parent9674c0f30e38a9fc1eccdc9123cd26d9a7d8d2f5 (diff)
downloadltrace-c9bc6d888acae31dabca0a234d97189d97d43958.tar.gz
ltrace-c9bc6d888acae31dabca0a234d97189d97d43958.tar.bz2
ltrace-c9bc6d888acae31dabca0a234d97189d97d43958.zip
In config files, allow whitespace between identifier and opening paren
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/ltrace.main/parameters2.exp14
1 files changed, 13 insertions, 1 deletions
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