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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33669] Test of get_first_help_sentence fails


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #33669] Test of get_first_help_sentence fails on MinGW
Date: Thu, 24 Nov 2011 04:39:16 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Follow-up Comment #14, bug #33669 (project octave):

I have attached the patch (file #24431)



diff -r c3c8f513cf1f -r 6c7130522baf src/file-io.cc
--- a/src/file-io.cc    Wed Nov 23 10:56:05 2011 -0800
+++ b/src/file-io.cc    Thu Nov 24 13:33:55 2011 +0900
@@ -2020,7 +2020,7 @@
             }
           else
             {
-              const char *fopen_mode = "w+";
+              const char *fopen_mode = "w+b";

               FILE *fid = fdopen (fd, fopen_mode);


The result is 
  scriptshelpget_first_help_sentence.m ................. PASS    6/7    FAIL
1


octave:1> test get_first_help_sentence
  ***** assert (strcmp (get_first_help_sentence('get_first_help_sentence'),
"Return the first sentence of a function's help text."));
!!!!! test failed
assert (strcmp (get_first_help_sentence ('get_first_help_sentence'), "Return
the first sentence of a function's help text.")) failed
octave:2> get_first_help_sentence ('get_first_help_sentence')
   Return the first sentence of a function's help text.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33669>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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