]> sourceware.org Git - systemtap.git/commit
Fix testcase systemtap.unprivileged/unprivileged_embedded_C.exp
authorMartin Cermak <mcermak@redhat.com>
Wed, 16 May 2018 09:56:20 +0000 (11:56 +0200)
committerMartin Cermak <mcermak@redhat.com>
Wed, 16 May 2018 09:56:20 +0000 (11:56 +0200)
commit8a7a1a59891fba2b2c34208589c0c8e0401c2b35
treef71483e4a9bf3d3976805867a700bcbddba92f37
parent0e051c5afc73315434d1e5fcc3d67d43a9341b66
Fix testcase systemtap.unprivileged/unprivileged_embedded_C.exp

Commit 2f6fcfc6 (Fix BZ1546179 by being careful when accessing
sk_buff structures) made the "unprivileged_embedded_C.exp"
testcase unhappy.  It started to report false positives.

Thing is that embeddedc.awk can't correctly parse two block
boundaries at a line, which is exactly what the commit introduces
by adding "} catch { }", or "try { ... } catch { }".  Here is the
failure as observed with git stap 0e051c5:

=======
FAIL: unprivileged embedded C: : --unprivileged: Unterminated block at: function _input_route_type:long (skb:long): 2 0
FAIL: unprivileged embedded C: : --privilege=stapusr: Unterminated block at EOF: 2 0
FAIL: unprivileged embedded C: : --privilege=stapsys: Unterminated block at: function _input_route_type:long (skb:long): 2 0
FAIL: unprivileged embedded C: : --privilege=stapsys: Unterminated block at EOF: 2 0
FAIL: unprivileged embedded C (transitive): : --privilege=stapusr: Unterminated block at: function _input_route_type:long (skb:long): 2 0
FAIL: unprivileged embedded C (transitive): : --privilege=stapsys: Unterminated block at: function _input_route_type:long (skb:long): 2 0
=======

This commit tries to address the issue by making embeddedc.awk
able to process two block boundaries at a line.
testsuite/systemtap.unprivileged/embeddedc.awk
This page took 0.031757 seconds and 5 git commands to generate.