[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/
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/18
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config,
Colin Macdonald <=
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/19
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/20
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/23
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/23
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/23
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/24
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Colin Macdonald, 2022/07/24
- [Octave-bug-tracker] [bug #62780] oruntests looks in file without respecting .oct-config, Markus Mützel, 2022/07/25