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

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

[Octave-bug-tracker] [bug #43979] test unpack fails in MXE-Octave ver 4.


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #43979] test unpack fails in MXE-Octave ver 4.1.0+
Date: Mon, 19 Jan 2015 20:52:06 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36

Follow-up Comment #7, bug #43979 (project octave):

test unpack failed for me (with the patch)


>> test unpack
***** test
 ## Create temporary directory and file for packing and unpacking
 dirname = tempname ();
 assert (mkdir (dirname));
 filename = tempname ();
 fid = fopen (filename, "wt");
 assert (fid >= 0);
 fprintf (fid, "Hello Worldn");
 fprintf (fid, "123 456 789n");
 fclose (fid);
 unwind_protect
   copyfile (filename, [filename ".orig"]);
   gzip (filename, dirname);
   [~, f] = fileparts (filename);
   filelist = unpack (fullfile (dirname, [f ".gz"]), P_tmpdir);
   assert (filelist{1}, filename);
   fid = fopen ([filename ".orig"], "rb");
   assert (fid >= 0);
   orig_data = fread (fid);
   fclose (fid);
   fid = fopen (filename, "rb");
   assert (fid >= 0);
   new_data = fread (fid);
   fclose (fid);
   if (orig_data != new_data)
     error ("unpack: Unpacked file does not equal original");
   endif
 unwind_protect_cleanup
   unlink (filename);
   unlink ([filename ".orig"]);
   rmdir (dirname);
 end_unwind_protect
!!!!! test failed
ASSERT errors for:  assert (filelist {1},filename)

  Location  |  Observed  |  Expected  |  Reason
     []      C:UsersavinoamAppDataLocalTempoct-PxjH0coct-HAjJsC
       C:UsersavinoamAppDataLocalTempoct-HAjJsC                    Strings
don't match


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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