bugGNU Octave - Bugs: bug #63317, failing BIST in variables.cc-tst...

 
 

bug #63317: failing BIST in variables.cc-tst (Octave 7.3.0, Win10)

Submitter:  Hartmut <hardy>
Submitted:  Fri 04 Nov 2022 09:02:45 PM UTC
   
 
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 07 Nov 2022 04:22:53 PM UTC, comment #4: 

I have now excessivly re-run

  • the whole test suite via run_test_suite (still as normal user without admin rights)
  • the individual unit test of variables.cc-tst (20 times in a row)


and I have NOT observed any test failure any more. This was on the very same PC as used for the original bug report (comment #0).

I do not know why this test failure is gone now. I assume it might be some file access peculiarity, maybe that files that are touched for the very first time need to be checked by the Windows virus scanner up front, maybe something else.

Nevertheless, since this test failure is not reproducible in the long run, I think we could savely ignore it and CLOSE this bug report. Sorry for the noise.

Hartmut <hardy>
Mon 07 Nov 2022 03:45:01 PM UTC, comment #3: 

Might also be file system lag.
I noticed that there is a lot of disc activity while running the test suite in the GUI. (Maybe caused by frequent updates of the file browser widget or Octave's load path each time the current directory changes?)
I sometimes end up in a different folder from the one I started in when executing `__run_test_suite__`.

Do you see the same error if you just run the single test with
`test C:\Octave\Octave-7.3.0\mingw64\share\octave\7.3.0\etc\tests\libinterp\corefcn\variables.cc-tst`?

Markus Mützel <mmuetzel>
Group administrator
Fri 04 Nov 2022 11:51:09 PM UTC, comment #2: 

It's got to be a permission issue. Test passes on my Win10, but
ran as the same (super) user who installed it.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 04 Nov 2022 11:45:21 PM UTC, comment #1: 

The return code from 'exist' is 0 when the file does not exist and 2 when it can be found on the Octave path.  The answer in this case should be 0 because "./plot.m" is the exact file name in the current directory.  It is possible that there has been a change to the way './' is handled on Windows.  It shouldn't be stripped, but maybe it is.

Rik <rik5>
Group administrator
Fri 04 Nov 2022 09:02:45 PM UTC, original submission:  

I observed one failing BIST with the freshly released Octave 7.3.0 under Windows 10. Here is what I did:

  • install "octave-7.3.0-w64-installer.exe" from ftp.gnu.org under Windows 10 (as administrator, into a dedicated program folder)
  • run Octave 7.3.0 GUI (with normal user rights, user = dummyuser)
  • remove all startup.m files and similar
  • execute "__run_test_suite__"
  • observation: 1 FAIL


Here is the failing BIST, taken from fntest.log:


>>>>> processing C:\Octave\Octave-7.3.0\mingw64\share\octave\7.3.0\etc\tests\libinterp\corefcn\variables.cc-tst
***** testif ; isunix ()
 assert (exist ("/bin/sh"), 2);
 assert (exist ("/bin/sh", "file"), 2);
 assert (exist ("/bin/sh", "dir"), 0);
 assert (exist ("/dev/null"), 2);
 assert (exist ("/dev/null", "file"), 2);
 assert (exist ("/dev/null", "dir"), 0);
----- skipped test (runtime test)

***** assert (exist ("./plot.m", "file"), 0)
!!!!! test failed
ASSERT errors for:  assert (exist ("./plot.m", "file"),0)

  Location  |  Observed  |  Expected  |  Reason
     ()           2            0         Abs err 2 exceeds tol 0 by 2
shared variables     dirtmp = C:\Users\dummyuser\AppData\Local\Temp
    __var1 = 1


I did not observe this BIST failure with Octave 7.2.0 on the same Win 10 computer, which is why I marked this a regression.

I am unsure if this is a problem, but wanted to report it anyways.

Hartmut <hardy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hardy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-11-07 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code