/*
- * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011-2017 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// The runner will terminate as soon as possible (after current test).
void Terminate();
bool GetAllowChildLogs();
+ bool GetRunIgnored() const;
void deferFailedException(const DPL::Test::TestFailed &ex);
void deferIgnoredException(const DPL::Test::TestIgnored &ex);
/**
* IGNORE MACRO
*
- * When test reaches this macro call, its furhter code will be ignored.
+ * When test reaches this macro call, its further code will be ignored.
* To ignore whole test, put this macro call at the beginning of this tests
* body.
*/
-#define RUNNER_IGNORED_MSG(message) \
- do \
- { \
- std::ostringstream assertMsg; \
- assertMsg << message; \
- throw DPL::Test::TestIgnored(assertMsg.str()); \
+#define RUNNER_IGNORED_MSG(message) \
+ do \
+ { \
+ if (DPL::Test::TestRunnerSingleton::Instance().GetRunIgnored()) { \
+ break; \
+ } \
+ std::ostringstream assertMsg; \
+ assertMsg << message; \
+ throw DPL::Test::TestIgnored(assertMsg.str()); \
} while (0)
/**