# # # patch "ChangeLog" # from [6bf032f4db4d2225bea0a1bfc06dcb6465dd6bdb] # to [e7ba181d738189ea7e3dc4fba7971873b4685b32] # # patch "tester.lua" # from [e2433109b48883845115e71f413c71402948b8ff] # to [5fbd70278ff8878b3d5ee65b0650449f90356132] # ============================================================ --- ChangeLog 6bf032f4db4d2225bea0a1bfc06dcb6465dd6bdb +++ ChangeLog e7ba181d738189ea7e3dc4fba7971873b4685b32 @@ -1,3 +1,10 @@ +2006-12-13 Markus Schiltknecht + + Made a lua tester function more bullet proof. + + * tester.lua (samelines): do not throw a format error if + the file ends before expected. + 2006-12-12 Ben Walton * cmd_ws_cc: Added mtn mkdir ============================================================ --- tester.lua e2433109b48883845115e71f413c71402948b8ff +++ tester.lua 5fbd70278ff8878b3d5ee65b0650449f90356132 @@ -388,8 +388,13 @@ function samelines(f, t) end for i=1,table.getn(t) do if fl[i] ~= t[i] then - L(locheader(), string.format("file[i] = '%s'; table[i] = '%s'\n", - fl[i], t[i])) + if fl[i] then + L(locheader(), string.format("file[i] = '%s'; table[i] = '%s'\n", + fl[i], t[i])) + else + L(locheader(), string.format("file[i] = ''; table[i] = '%s'\n", + t[i])) + end return false end end