test log openedplatform: a590 100eversion: CHDK 0.8.1-586 built on Nov 20 2008 20:55:03***test io***file info for io.input: closed file!file info for io.output: valid file ptr: 2100464 fd: 3 len: 190 pos: 190 raw vals: 0:3 4:190 8:1 12:190 16:1 20:1 24:270606704 28:0 32:1819029313io.open("A/iotest0.txt","w+b"): OK PASSA/iotest0.txt:write(...): OK PASSA/iotest0.txt:seek("set",4): OK 4 PASSA/iotest0.txt:read(5): string [slick] A/iotest0.txt:seek("nil",nil): OK 9 PASSA/iotest0.txt:seek("cur",-5): OK 4 PASSA/iotest0.txt:write(...): OK PASSA/iotest0.txt:seek("end",nil): OK 44 PASSA/iotest0.txt:write(...): OK PASSA/iotest0.txt:flush(): OK PASSA/iotest0.txt:seek("set",nil): OK 0 PASStest file:lines()0: [the quick brown fox jumps over the lazy dog]1: [1]2: [2a 3 1234567890 b]A/iotest0.txt:seek("set",nil): OK 0 PASSA/iotest0.txt:write(...): OK PASSA/iotest0.txt:seek("set",nil): OK 0 PASStest file:read("*a")A/iotest0.txt:read(*a): string [ 12a 3 1234567890 b] A/iotest0.txt:seek("set",nil): OK 0 PASStesting file:read("*n")A/iotest0.txt:read(*n): number [1] A/iotest0.txt:seek("nil",nil): OK 45 NAA/iotest0.txt:read(*n): number [2] A/iotest0.txt:seek("nil",nil): OK 47 NAA/iotest0.txt:read(*n): <no results>A/iotest0.txt:seek("nil",nil): OK 47 NAA/iotest0.txt:read(1): string [a] A/iotest0.txt:seek("nil",nil): OK 48 NAA/iotest0.txt:read(*n): number [3] A/iotest0.txt:seek("nil",nil): OK 52 NAA/iotest0.txt:read(*n): number [1234567890] A/iotest0.txt:seek("nil",nil): OK 63 NAA/iotest0.txt:read(*n): <no results>A/iotest0.txt:seek("nil",nil): OK 70 NAA/iotest0.txt:read(1): string [b] A/iotest0.txt:seek("nil",nil): OK 71 NAA/iotest0.txt:read(*n): <no results>A/iotest0.txt:seek("nil",nil): OK 71 NAA/iotest0.txt:read(1): <no results>A/iotest0.txt:seek("nil",nil): OK 71 NAA/iotest0.txt:close(): OK PASStest open missing fileio.open("A/bogus","r"): ERR msg=A/bogus: error PASStest open dirio.open("A/CHDK","r"): ERR msg=A/CHDK: error PASSio.open("A/iotest0.txt","r"): OK PASStest invalid seeksA/iotest0.txt:seek("set",-1): ERR nil PASSA/iotest0.txt:seek("end",100): ERR nil PASSA/iotest0.txt:close(): OK PASS***end io OK******test os***current date Sun Nov 23 15:13:24 2008os.time(): OK 1227453204 PASSos.time({day=1,year=1980,month=1,}): OK 315576000 PASSos.time({day=1,year=1066,month=1,}): ERR PASS%a [Sun]%A [Sunday]%b [Nov]%B [November]%c [Sun Nov 23 15:13:24 2008]%d [23]%H [15]%I [03]%j [328]%m [11]%M [13]%p [PM]%S [24]%U [47]%w [0]%W [46]%x [11/23/08]%X [15:13:24]%y [08]%Y [2008]%Z [%Z]%% [%]os.mkdir("A/MDTST0"): OK PASSio.open("A/MDTST0/TEST0.DAT","wb"): OK PASSA/MDTST0/TEST0.DAT:write(...): OK PASSA/MDTST0/TEST0.DAT:close(): OK PASSos.stat("A/MDTST0/TEST0.DAT"): OK PASS{ dev=2 mode=33279 size=4 atime=1227398400 mtime=1227453204 ctime=1227453204 blksize=512 blocks=1 attrib=32 is_dir=false is_file=true}os.utime("A/MDTST0/TEST0.DAT",nil,nil): OK PASSos.stat("A/MDTST0/TEST0.DAT"): OK PASS{ dev=2 mode=33279 size=4 atime=1227398400 mtime=1227453204 ctime=1227453204 blksize=512 blocks=1 attrib=32 is_dir=false is_file=true}os.utime("A/MDTST0/TEST0.DAT",441806400,472824000): OK PASSos.stat("A/MDTST0/TEST0.DAT"): OK PASS{ dev=2 mode=33279 size=4 atime=441763200 mtime=472824000 ctime=1227453204 blksize=512 blocks=1 attrib=32 is_dir=false is_file=true}os.stat("A/MDTST0"): OK PASS{ dev=2 mode=16895 size=32768 atime=1227398400 mtime=1227453204 ctime=1227453204 blksize=512 blocks=64 attrib=16 is_dir=true is_file=false}os.rename("A/MDTST0/TEST0.DAT","A/MDTST0/TEST1.DAT): OK PASSos.listdir("A/MDTST0",nil): OK PASS{ 1="TEST1.DAT"}os.listdir("A/MDTST0",true): OK PASS{ 1="." 2=".." 3="TEST1.DAT"}os.remove("A/MDTST0): ERR A/MDTST0: error PASSos.remove("A/bogus): ERR A/bogus: error PASSos.listdir("A/bogus",nil): ERR A/bogus: error PASSos.listdir("A/llibtst.log",nil): OK FAIL{}os.stat("A/bogus"): ERR A/bogus: error PASSos.utime("A/bogus",nil,nil): ERR A/bogus: error PASSos.rename("A/bogus","A/blah): ERR A/bogus: error PASSos.mkdir("A/CHDK"): ERR A/CHDK: error PASSos.remove("A/MDTST0/TEST1.DAT): OK PASSos.remove("A/MDTST0): OK PASSos.remove("A/iotest0.txt): OK NA***end os FAIL 1***close test log
os.listdir("A/llibtst.log",nil): OK FAIL
If I not use any of these commands with errors, I would not get any problems, would I?
Started by BlueChip General Discussion and Assistance
Started by reyalp General Discussion and Assistance
Started by TMHKR General Help and Assistance on using CHDK stable releases
Started by ardedi7 Script Writing
Started by EZE General Discussion and Assistance