unless you have a behavior that isn't obviously correct
slackner
well, even then AJ often wants test, even if its just to ensure that noone breaks it again
puk
right
slackner
but tests can be time intensive, especially when testing them on the slow testbot machines ... xD
puk
i learned it the hard way
after somebody broke my PERFECT code for calculating the hotspot for an ImageList_Drag
and broke the app I was testing with
i wrote tests and it turned out that we both were wrong
;)
slackner
hehe, yeah, that also happens from time to time xD
in some cases (for example the LZNT1 decompression patches) i gave up reproducing the exact windows behaviour after i noticed, that its _extremely_ broken there ;)
puk
right
sometimes you don't bother for the extreme corner cases and bugs
i mean the undefined/unspecified behavior
slackner
yup
are you really planning to get those last-minute patches in ? :P ^^
puk
lol, no
just spoon feeding those to AJ
i have 3 more ready
;)
slackner
i read you already have a script for that ^^
puk
sure
but some code is questionable
and I get bored at reviewing the diff
slackner
well, i would recommend to mainly concentrate on the dll code
tests don't really matter much at my opinion
puk
not that much left
slackner
and if you ask me, they should be excluded completely from automatic code check tools
(until they are better xD)
puk
it is just a nice cleanup
nothing else
for readability
slackner
not for the 0,00000001% performance improvement? ;)
puk
hell no
that one doesn't matter
slackner
i think in some cases it could indeed have an effect, when the code works with use texts
*huge
puk
right
slackner
but i agree, in most cases you'll not really notice it xD
puk
that's why I send those in slowly ;)
can be fixed
slackner
well, nevertheless - maybe someone should really check again all the algorithms
just think about the performance improvement of replacing linked lists with hash tables and stuff xD
puk
but AJ might react allergic if I flood him with those
THAT is my main gripe with C
no usable generic data types in the standard
lists, hashes
slackner
puk: yeah, but some of the things you can do with C-style list macros are not possible with such generic data types
puk
e.g. I love working with sets in python
slackner
(just think about adding the same element to multiple lists and things like that)
puk: i also like python because its so easy to write down some quick code ;)
NOTICE: [13wine-staging] 15slackner pushed 1 new commit to 06master: 02https://github.com/wine-compholio/wine-staging/commit/1637f56db9cb58fd06a5fadaf297fea5b02d0a2f
NOTICE: 13wine-staging/06master 141637f56 15Sebastian Lackner: Removed several patches (accepeted upstream).
puk
slackner: yeah, unless I need a lot of regexps
then I find python strange
and some things aren't intuitive
slackner
puk: yeah, especially some internal APIs are often a bit weird
puk: and i also hate that its not even proper multithreaded
but besides that its pretty awesome ;)
and pypy too ^^
puk
yeah
don't get me started on join()...
i have no clue why that is a method of the separator
instead of the list
well, I know
because of the limitations of "everything is an object" to match the real world
slackner
yeah, in this case the opposite would be much more intuitive
AmineKhaldi joined the channel
puk
slackner: right, but they can't do it there as the list/array might not have a "to string" method
meh
well, they could have done it
but probably didn't look "clean" to them
slackner
yeah - too bad that there is no language with all the advantages combined, noone finds a good compromise between simplicity, speed, ...
puk
well, functional works too for the join
str.join(":", ('foo','bar'))
but until I remember that it is str and not string
slackner
sure, but thats even more ugly xD
puk
and wasted time looking for the method in dir(array()) ...
slackner: I will do that this week-end. Can you see for makefiles?
slackner
titan38: yup, will take a look, but would be nice to have a working example, otherwise its a bit difficult to test
DarkPlayer also pointed out that its probably not really necessary to add a testing framework globally - instead it would also be sufficient, when only the ntoskrnl tests Makefile behaves differently.
which is probably a bit easier
titan38
slackner: no problem that would be enough as a start
AmineKhaldi
guys
titan38
slackner: I will send you the test case so you can modify the makefile
AmineKhaldi
you're talking about testing drivers.. can the kmtests framework help ?