Just documenting an observations.  Debugging continues tomorrow.


> I'll try to find something about the listing_mode failures.

The failing tests are those which do address liblisting_mode.so by
non-absolute pathname.  Only the absolute pathname work.

There are 4 modes for specifying the filename:
- liblisting_mode.so      (pp_simple)
- ./liblisting_mode.so    (pp_rel)
- *liblisting_mode.so     (pp_wild)
- /.../liblisting_mode.so (pp_abs)

and only the absolute variant PASSes; the other 3 variants FAIL.




Steps to reproduce:
===================

Absolute pathname:
------------------

testsuite# make check \
                RUNTESTFLAGS=listing_mode.exp \
LISTING_MODE_SUBTEST='process.library("/root/git/systemtap/testsuite/liblisting_mode.so").function("libfoo")'


                        === systemtap Summary ===

        # of expected passes            5
        # of unexpected failures        28
        # of known failures             48
        # of untested testcases         1007


        pass&fail total: 5 + 28 = 33



Simple / Relative / Wild pathnames:
-----------------------------------

testsuite# make check \
                RUNTESTFLAGS=listing_mode.exp \
LISTING_MODE_SUBTEST='process.library("liblisting_mode.so").function("libfoo")'


                        === systemtap Summary ===

        # of expected passes            2
        # of unexpected failures        31
        # of known failures             48
        # of untested testcases         1007

        pass&fail total: 2 + 31 = 33

        (same summary for './lib[...]' and '\*lib[...])


Related code:
-------------

        proc stap_list_cmd_lib {pp {exp ""} {nlines_exp 1} {arguments ""}} {
           global sopath sofullpath

           set pp_simple [string map "sopath $sopath" $pp]
           stap_list_cmd $pp_simple $exp $nlines_exp $arguments

           set pp_rel [string map "sopath ./$sopath" $pp]
           stap_list_cmd $pp_rel $exp $nlines_exp $arguments

           set pp_abs [string map "sopath $sofullpath" $pp]
           stap_list_cmd $pp_abs $exp $nlines_exp $arguments

           set pp_wild [string map "sopath *$sopath" $pp]
           stap_list_cmd $pp_wild $exp $nlines_exp $arguments
        }



--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to