1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/env python
from runtest import TestBase
class TestCase(TestBase):
def __init__(self):
TestBase.__init__(self, 'autoargs', result="""hello
# DURATION TID FUNCTION
[16523] | main() {
2.670 us [16523] | strlen("autoargs test") = 13;
1.353 us [16523] | calloc();
1.150 us [16523] | free();
1.336 us [16523] | strcmp("hello", "hello") = 0;
4.017 us [16523] | puts();
18.574 us [16523] | } /* main */
""")
def setup(self):
self.option = '-F main -A ^str -R ^str'
self.exearg += ' hello'
|