cucumber / cucumber-cpp

Support for writing Cucumber step definitions in C++
MIT License
304 stars 131 forks source link

refactoring: programmatically generate temporary file name in test #265

Closed ursfassler closed 8 months ago

ursfassler commented 8 months ago

Summary

Latest gcc throws errors when using tmpnam. Generate temporary file name within the test to work around. It has the same shortcomings as using tmpnam, but they are no risk as it is used only in the tests.

Details

Motivation and Context

Test didn't compile anymore on my Linux machine.

How Has This Been Tested?

It is within a test. The test passes.

Types of changes

Checklist: