[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55565] test: help.cc BIST test fails in test
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #55565] test: help.cc BIST test fails in test suite if test directory is not writeable |
Date: |
Thu, 24 Jan 2019 18:07:47 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55565>
Summary: test: help.cc BIST test fails in test suite if test
directory is not writeable
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Thu 24 Jan 2019 03:07:45 PM PST
Category: Test Suite
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.0.90
Operating System: GNU/Linux
_______________________________________________________
Details:
Running the full test suite with '__run_test_suite__' uses chdir to change to
the directory that contains each test file.
The BIST test for help.cc requires that the current working directory is
writeable.
If Octave is installed first, let's say as root, and then the test suite is
run by a non-root user, the test will fail because the directory is not
writeable.
It should be possible to rewrite this test to write the function file to a
temporary directory, temporarily add that directory to the load path, and
remove it from the path in the unwind cleanup. Will take a look at that.
>> test ("/app/share/octave/5.0.90/etc/tests/libinterp/corefcn/help.cc-tst")
PASSES 1 out of 1 test
>> __run_test_suite__
({"/app/share/octave/5.0.90/etc/tests/libinterp/corefcn"}, {})
Integrated test scripts:
...
libinterp/corefcn/help.cc-tst .................................. PASS 0/1
FAIL 1
...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55565>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55565] test: help.cc BIST test fails in test suite if test directory is not writeable,
Mike Miller <=