Fix: tests: CFLAGS to CXXFLAGS when converting to C++
[lttng-tools.git] / tests / regression / kernel / select_poll_epoll.cpp
index 5dabf55b6e560d403374ee054981bfb101963aa3..32cecddbb13409c2e1551385c47eb7043142538b 100644 (file)
@@ -5,6 +5,14 @@
  *
  */
 
+/*
+ * This test voluntarily does buffer overflows and stack overruns, disable
+ * source fortification.
+ */
+#ifdef _FORTIFY_SOURCE
+#undef _FORTIFY_SOURCE
+#endif
+
 #include <fcntl.h>
 #include <limits.h>
 #include <poll.h>
@@ -59,7 +67,8 @@ static void epoll_pwait_concurrent_munmap(FILE *validation_output_file);
 
 typedef void (*test_case_cb)(FILE *output_file);
 
-static const struct test_case {
+namespace {
+const struct test_case {
        test_case_cb run;
        bool produces_validation_info;
        int timeout;
@@ -82,6 +91,7 @@ struct ppoll_thread_data {
        struct pollfd *ufds;
        int value;
 };
+} /* namespace */
 
 static
 void test_select_big(void)
This page took 0.023617 seconds and 4 git commands to generate.