Den 2009-08-11 12:30 skrev Dave Korn:
+AT_SETUP([dll basic test]) + +AT_DATA([foo.c],[[ +int x=0; +]]) + +AT_DATA([baz.c],[[ +int y=0; +]]) + +AT_DATA([bar.c],[[ +extern int x; +int bar(void); +int bar() { return x;} +]]) + +AT_DATA([main.c],[[ +extern int x; +extern int y; + +int main() { +return x+y; +} +]])
*snip*
+AT_SETUP([dll install to bindir]) + +AT_DATA([foo.c],[[ +int x=0; +]]) + +AT_DATA([bar.c],[[ +extern int x; +int bar(void); +int bar() { return x;} +]]) + +AT_DATA([baz.c],[[ +int y=0; +]])
Missed this before, sorry. But since it is a well known fact that exporting variables from libraries are bad and should be avoioded, can we please stop adding more of that practice to the test suite? There is enough of it already and in case it fails, other failures might be hidden. Cheers, Peter