Changeset View
Changeset View
Standalone View
Standalone View
devel/libevdev/files/patch-test_test-main.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- test/test-main.c.orig 2015-06-10 04:49:41 UTC | |||||
+++ test/test-main.c | |||||
@@ -41,6 +41,7 @@ extern Suite *uinput_suite(void); | |||||
static int | |||||
is_debugger_attached(void) | |||||
{ | |||||
+#if defined (linux) | |||||
int status; | |||||
int rc; | |||||
int pid = fork(); | |||||
@@ -64,6 +65,15 @@ is_debugger_attached(void) | |||||
} | |||||
return rc; | |||||
+#else | |||||
+ /* | |||||
+ * Skip useless gdb test as setting CK_FORK environment variable in | |||||
+ * absence of attached debugger gives no harm to user. | |||||
+ * Moreover this test is broken on most nonlinux systems, look at | |||||
+ * discussion here: http://stackoverflow.com/questions/3596781/ | |||||
+ */ | |||||
+ return 1; | |||||
+#endif | |||||
} | |||||
int main(int argc, char **argv) |