avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
336 stars 335 forks source link

Remove example "doublefree" tests #5900

Closed clebergnu closed 2 months ago

clebergnu commented 2 months ago

These tests were intended to show how one can compile a binary as part of the test, run it and look at what it produces. But, these tests produce output that is very dependent on the environment. There are already conditionals for different OSs, and newer gcc/glibc will require yet another conditional.

On gcc 11.2.1 and glibc 2.34, the error message produced is:

free(): double free detected in tcache 2

IMO those provide little value as example tests, observing the actual Avocado use cases, and are too dependent on environment, so they better go.

This is a backport from b14a147a31dec07ad34b087d1a7dce6c54b5a98e.

richtja commented 2 months ago

Hi @clebergnu, I have created backport #5902, which should solve the readthedocs issue here.