Bug 19537 - the parseok/semko.stp test case always fails
Summary: the parseok/semko.stp test case always fails
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-29 16:53 UTC by David Smith
Modified: 2016-02-01 19:59 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Smith 2016-01-29 16:53:12 UTC
The parseok/semko.stp test case is really a shell script that tries to parse all the semko test files, to ensure that it is semantic (elaboration) checks that fail, not parse errors. So, it runs 'stap -p1' on all the semko tests. But, this isn't quite enough and the test always fails. Here's the tail of systemtap.log:

====
parse error: embedded expression code in unprivileged script; need stap -g
        saw: embedded-code at /root/rhel6/testsuite/../../src.copy/testsuite/../testsuite/semko/global_access.stp:8:11
     source:   println(%{ /* pragma:read:var */ STAP_GLOBAL_GET_var() %})
                       ^^
====

So, the test fails because semko/global_access.stp needs '-g', not because the script can't be parsed. In addition, the test appears to stop on the first failure, instead of checking the rest of the semko scripts.
Comment 1 David Smith 2016-02-01 19:59:13 UTC
Fixed in commit e9f0a20 by writing a new test case (testsuite/systemtap.pass1-4/parse-semko.exp).