[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62681] pkg test: Tests outside of the specifi

Subject: [Octave-bug-tracker] [bug #62681] pkg test: Tests outside of the specified package are being run
Date: Tue, 28 Jun 2022 18:05:12 -0400 (EDT)


                 Summary: pkg test: Tests outside of the specified package are
being run
                 Project: GNU Octave
               Submitter: alexvong1995
               Submitted: Tue 28 Jun 2022 10:05:10 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Any


Follow-up Comments:

Date: Tue 28 Jun 2022 10:05:10 PM UTC By: Anonymous
This bug was originally reported in

When running "pkg test symbolic" in CI, tests outside of the symbolic package
are being run.

After some debugging, it appears that the m-file
is causing problem.

This part of the code

    if (strncmpi (pkg_list{i}.dir, "__OH__", 6))
      pkg_list{i}.dir = [ loc pkg_list{i}.dir(7:end) ];
      pkg_list{i}.archprefix = [ loc pkg_list{i}.archprefix(7:end) ];

assumes "__OH__" is a prefix of "pkg_list{i}.archprefix" without actually
checking it.

In our case, "pkg_list{i}.archprefix" is the empty path, causing "loc" (which
is "/usr") to be prepended to the empty path. The end result is that the tests
of all m-file inside "/usr" are being run.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]