Skip to content

Can't create a suite without set_up and tear_down #5

@rcowsill

Description

@rcowsill

The readme says:

It is possible to define a suite without specifying set_up or tear_down methods.

I tried to do that using the following code:

LT_BEGIN_SUITE(example_suite)
LT_END_SUITE(example_suite)

That gave me compile errors at littletest.hpp lines 367 and 372, because set_up and tear_down are not defined in example_suite.

Providing no-op implementations in the base class suite fixes the errors, and still allows suites to define custom set_up/tear_down if required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions