Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"doctest doctest" fails chdir error on old matlab #151

Open
cbm755 opened this issue Jul 3, 2016 · 2 comments
Open

"doctest doctest" fails chdir error on old matlab #151

cbm755 opened this issue Jul 3, 2016 · 2 comments

Comments

@cbm755
Copy link
Collaborator

cbm755 commented Jul 3, 2016

>> doctest doctest        
Doctest v0.4.1: this is Free Software without warranty, see source.

Error using chdir
Cannot CD to doctest (Name is nonexistent or not a directory).
Error in doctest_collect (line 76)
  oldcwd = chdir(what);
Error in doctest (line 241)
  summary = doctest_collect(what{i}, directives, summary, recursive, fid); 

Works if I specify the path and .m:

>> doctest matlab/doctest/doctest.m
Doctest v0.4.1: this is Free Software without warranty, see source.

matlab/doctest/doctest.m ............................... PASS   10/10  

Summary:

   PASS   10/10  

1/1 targets passed, 0 without tests.

Fails if in the right dir (unless .m specified, then it works)

>> cd matlab/doctest 
>> doctest doctest                 
Doctest v0.4.1: this is Free Software without warranty, see source.

Error using chdir
Cannot CD to doctest (Name is nonexistent or not a directory).
Error in doctest_collect (line 76)
  oldcwd = chdir(what);
Error in doctest (line 241)
  summary = doctest_collect(what{i}, directives, summary, recursive, fid); 
>> 
@cbm755
Copy link
Collaborator Author

cbm755 commented Nov 13, 2016

Cannot confirm this with master, using 2015b.

@cbm755
Copy link
Collaborator Author

cbm755 commented Oct 24, 2017

I think I can confirm on 2014a. Workaround is doctest doctest.m.

@cbm755 cbm755 changed the title "doctest doctest" fails chdir error on matlab "doctest doctest" fails chdir error on old matlab Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants