X Tutup
Skip to content

Commit 71d3be3

Browse files
author
Sebastiano Merlino
committed
Avoid warning during tests
1 parent 829c8fa commit 71d3be3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/littletest.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
#define LT_CREATE_RUNNER(__lt_suite_name__, __lt_runner_name__) \
5858
std::cout << "** Initializing Runner \"" << #__lt_runner_name__ << "\" **" << std::endl; \
59-
littletest::test_runner __lt_runner_name__
59+
littletest::test_runner __lt_runner_name__
6060

6161
#define LT_RUNNER(__lt_runner_name__) __lt_runner_name__
6262

@@ -283,7 +283,7 @@ struct check_unattended : public std::exception
283283
{
284284
return message.c_str();
285285
}
286-
286+
287287
private:
288288
std::string message;
289289
};
@@ -298,8 +298,8 @@ struct assert_unattended : public std::exception
298298
virtual const char* what() const throw()
299299
{
300300
return message.c_str();
301-
}
302-
301+
}
302+
303303
private:
304304
std::string message;
305305
};
@@ -314,8 +314,8 @@ struct warn_unattended : public std::exception
314314
virtual const char* what() const throw()
315315
{
316316
return message.c_str();
317-
}
318-
317+
}
318+
319319
private:
320320
std::string message;
321321
};
@@ -367,8 +367,8 @@ struct test_runner
367367
template <class test_impl>
368368
test_runner& run(test_impl* t)
369369
{
370-
std::cout << "Running test (" <<
371-
test_counter << "): " <<
370+
std::cout << "Running test (" <<
371+
test_counter << "): " <<
372372
t->__lt_name__ << std::endl;
373373

374374
t->run_test(this);
@@ -579,7 +579,7 @@ class test : public test_base
579579
test() { }
580580
test(const test<test_impl>& t) { }
581581

582-
friend class test_runner;
582+
friend struct test_runner;
583583
};
584584

585585
};

0 commit comments

Comments
 (0)
X Tutup