octave-bug-tracker
[Top][All Lists]
Advanced

[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);
  endif

  str = fread (fid, "*char").';
  fclose (fid);
  retval = ! isempty (regexp (str,
                              '^%!(assert|error|fail|test|xtest|warning)',
                              '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:

  <https://savannah.gnu.org/bugs/?62780>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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