Zhiyi Zhang (@zhiyi) commented about dlls/cfgmgr32/tests/cfgmgr32.c:
+ * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "wine/test.h" +#include "cfgmgr32.h" + +static void test_CM_MapCrToWin32Err(void) +{ + DWORD def = 0xdeadbeef, ret; You can put all the test data in a struct array and execute the tests in a loop.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2231#note_24764