[Top][All Lists]

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

[Octave-bug-tracker] [bug #62780] oruntests looks in file without respec

From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config
Date: Mon, 18 Jul 2022 16:06:27 -0400 (EDT)

Follow-up Comment #3, bug #62780 (project octave):

I looked at the source:

function retval = has_tests (f)

  fid = fopen (f);
  if (fid < 0)
    error ("oruntests: fopen failed: %s", f);

  str = fread (fid, "*char").';
  fclose (fid);
  retval = ! isempty (regexp (str,
                              'lineanchors', 'once'));

I haven't done this yet, but I guess next step is to compare that to some code
that *does* respect .oct-config.


Reply to this item at:


Message sent via Savannah

reply via email to

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