blob: 0cf95d98485a7eaa92d7c66e9da0bb246d02ee42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
from __future__ import print_function
import os
import subprocess
import sys
import yatest.common as yc
def test_fuzzing():
errfile = './errfile'
outfile = './outfile'
env = os.environ.copy()
for number in range(25000):
with open(errfile, 'w') as fe:
with open(outfile, 'w') as fo:
p = subprocess.Popen(
[
yc.build_path('library/cpp/tvmauth/src/rw/ut_large/gen/gen'),
],
env=env,
stdout=fo,
stderr=fe,
)
code = p.wait()
with open(errfile) as fe:
all = fe.read()
if all != '':
with open(outfile) as fo:
print(fo.read(), file=sys.stderr)
assert all == ''
assert code == 0
|