File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ ITimer::~ITimer() {
62
62
try {
63
63
stop ();
64
64
} catch (const std::exception &e) {
65
- std::cerr << " Exception in destructor (" << __PRETTY_FUNCTION__ << " ): " << e.what () << std::endl ;
65
+ std::cerr << " Exception in destructor (" << __PRETTY_FUNCTION__ << " ): " << e.what () << ' \n ' ;
66
66
exit (EX_SOFTWARE);
67
67
}
68
68
}
Original file line number Diff line number Diff line change 12
12
#include < thread>
13
13
14
14
static int x = 0 ;
15
- static void handler (int ) { ++x; }
15
+ static void handler (int ) {
16
+ ++x;
17
+ }
16
18
17
19
int main () {
18
20
struct sigaction sa {};
@@ -37,7 +39,7 @@ int main() {
37
39
38
40
std::this_thread::sleep_for (std::chrono::seconds (10 ));
39
41
if (x != 5 ) {
40
- std::cerr << " Assertion x == 5 failed " << __FILE__ << " :" << __LINE__ << std::endl ;
42
+ std::cerr << " Assertion x == 5 failed " << __FILE__ << " :" << __LINE__ << ' \n ' ;
41
43
return EXIT_FAILURE;
42
44
}
43
45
}
You can’t perform that action at this time.
0 commit comments