[go: up one dir, main page]

File: t185_exception2.py

package info (click to toggle)
uftrace 0.18.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,356 kB
  • sloc: ansic: 49,770; python: 11,181; asm: 837; makefile: 769; sh: 637; cpp: 627; javascript: 191
file content (23 lines) | stat: -rw-r--r-- 805 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'exception2', lang='C++', result="""
# DURATION     TID     FUNCTION
            [ 25279] | _GLOBAL__sub_I__Z3foov() {
            [ 25279] |   __static_initialization_and_destruction_0() {
  51.124 us [ 25279] |     std::ios_base::Init::Init();
  55.299 us [ 25279] |   } /* __static_initialization_and_destruction_0 */
  55.864 us [ 25279] | } /* _GLOBAL__sub_I__Z3foov */
            [ 25279] | main() {
   0.050 us [ 25279] |   foo() {
   1.513 us [ 25279] |     __cxa_allocate_exception();
  22.451 us [ 25279] |   } /* foo */
   0.087 us [ 25279] |   bar();
  23.092 us [ 25279] | } /* main */
""")

    def setup(self):
        self.option = '-N personality_v.'