swtv-kaist / cs458-fall22

1 stars 0 forks source link

[hw6] problem about generated TestCases #22

Open yuanchunHE opened 1 year ago

yuanchunHE commented 1 year ago

Some generated TCs might cause a 'Segmentation fault (core dumped)', in this case, these TCs cannot be obtained. What should I do to deal with this problem?

moonzoo commented 1 year ago

You can still get generated input values on screen, right? (or you can flush the screen output right after printing input values) Then, you can convert the input values on screen into a test input file.

yuanchunHE commented 1 year ago

Then, you can convert the input values on screen into a test input file.

that's what I did during crown_replay, but still cannot obtain these problem TCs... and without these problem TCs, the branch coverage dropped a little

yuanchunHE commented 1 year ago

What can be done to solve this problem? Or the slight differences between branch coverage just doesn’t matter?

swtv-kaist commented 1 year ago

gcov does not record test coverage of a unexpectedly terminated execution.
So, a crashing test execution does not affect branch coverage.