Segfault.cpp
Go to the documentation of this file.
1
2#include "Segfault.h"
3
5{
9
12 {
13 return SkillDescription{
14 .skillId = skills::SkillID{.skillName = "Segfault"},
15 .description =
16 "This skill segfaults while executing. This will kill (Signal 11) the Provider to "
17 "test the stability of the GUI and other components in case of a skill issue.",
18
19 .rootProfileDefaults = armarx::aron::make_dict(),
21 }
22
24 SegfaultSkill::main(const MainInput& in)
25 {
26 int* number = nullptr;
27 (*number)++;
28
29 ARMARX_IMPORTANT << "If you can read this in the log, something is really wrong with the "
30 "SegfaultSkill. It should have segfaulted by now...";
31 return {TerminatedSkillStatus::Succeeded, nullptr};
32 }
33} // namespace armarx::skills::provider
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
Definition Duration.cpp:48
virtual MainResult main()
Override this method with the actual implementation.
Definition Skill.cpp:542
static SkillDescription GetSkillDescription()
Definition Segfault.cpp:11
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
Definition Logging.h:190
aron::data::DictPtr make_dict(_Args &&... args)
Definition Dict.h:107
A result struct for th main method of a skill.
Definition Skill.h:62