

import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil

class TestVectorOfEnums(TestBase):

  mydir = TestBase.compute_mydir(__file__)

  def test_vector_of_enums(self):
    self.build()

    lldbutil.run_to_source_breakpoint(self, '// break here',
            lldb.SBFileSpec("main.cpp", False))

    self.expect("expr v", substrs=[
         'size=3',
         '[0] = a',
         '[1] = b',
         '[2] = c',
         '}'
        ])



import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil

class TestVectorOfEnums(TestBase):

  mydir = TestBase.compute_mydir(__file__)

  @add_test_categories(["libc++"])
  def test_vector_of_enums(self):
    self.build()

    lldbutil.run_to_source_breakpoint(self, '// break here',
            lldb.SBFileSpec("main.cpp", False))

    self.expect("expr v", substrs=[
         'size=3',
         '[0] = a',
         '[1] = b',
         '[2] = c',
         '}'
        ])

Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category.
Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category.

See differential https://reviews.llvm.org/D59847 for initial change that this fixes

git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@357210 91177308-0d34-0410-b5e6-96231b3b80d8

  
  
  import lldb
  from lldbsuite.test.decorators import *
  from lldbsuite.test.lldbtest import *
  from lldbsuite.test import lldbutil
  
  class TestVectorOfEnums(TestBase):
  
    mydir = TestBase.compute_mydir(__file__)
  
+   @add_test_categories(["libc++"])
    def test_vector_of_enums(self):
      self.build()
  
      lldbutil.run_to_source_breakpoint(self, '// break here',
              lldb.SBFileSpec("main.cpp", False))
  
      self.expect("expr v", substrs=[
           'size=3',
           '[0] = a',
           '[1] = b',
           '[2] = c',
           '}'
          ])
  
Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category.
## Code Before:


import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil

class TestVectorOfEnums(TestBase):

  mydir = TestBase.compute_mydir(__file__)

  def test_vector_of_enums(self):
    self.build()

    lldbutil.run_to_source_breakpoint(self, '// break here',
            lldb.SBFileSpec("main.cpp", False))

    self.expect("expr v", substrs=[
         'size=3',
         '[0] = a',
         '[1] = b',
         '[2] = c',
         '}'
        ])

## Instruction:
Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category.
## Code After:


import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil

class TestVectorOfEnums(TestBase):

  mydir = TestBase.compute_mydir(__file__)

  @add_test_categories(["libc++"])
  def test_vector_of_enums(self):
    self.build()

    lldbutil.run_to_source_breakpoint(self, '// break here',
            lldb.SBFileSpec("main.cpp", False))

    self.expect("expr v", substrs=[
         'size=3',
         '[0] = a',
         '[1] = b',
         '[2] = c',
         '}'
        ])
