forked from kozorizki/binaryen
When a parameter and a member variable have the same name within a constructor, to access (and change) the member variable, we need to either use `this->` or change the name of the parameter. The current code ended up changing the parameter and didn't affect the status of the member variable, which remained empty.
15 lines
401 B
Python
15 lines
401 B
Python
import os
|
|
import tempfile
|
|
from scripts.test import shared
|
|
from . import utils
|
|
|
|
|
|
class EmptyDataFuzzTest(utils.BinaryenTestCase):
|
|
def test_empty_data(self):
|
|
try:
|
|
temp = tempfile.NamedTemporaryFile(delete=False).name
|
|
shared.run_process(shared.WASM_OPT + ['-ttf', temp],
|
|
capture_output=True)
|
|
finally:
|
|
os.unlink(temp)
|