1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2011 - DIGITEO - Bruno JOFRET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- ENGLISH IMPOSED -->
10 // <-- CLI SHELL MODE -->
12 testFile=TMPDIR + '/testFile.bin';
13 fd = mopen(testFile,'wb');
15 // file should be empty
16 if mtell(fd) <> 0 then pause, end
22 if mtell(fd) <> 8 * j then pause, end
30 errorMessage = sprintf(gettext("%s: Error while opening, reading or writing.\n"), "mtell");
31 [message, ierr]=lasterror();
32 if message <> errorMessage then bugmes();quit;end
35 fd = mopen(testFile,'wb');
36 // file should be empty
37 if mtell(fd) <> 0 then pause, end
43 if mtell(fd) <> 2 * j then pause, end
48 fd = mopen(testFile,'wb');
49 // file should be empty
50 if mtell(fd) <> 0 then pause, end
56 if mtell(fd) <> 8 * j then pause, end