Skip to contentSkip to conversation

selftests/proc: Drop define _GNU_SOURCE

PATCH Alexey Dobriyan 1 participant 1 message May 16, 2024

lore
Share & tools
lore
#0 lore raw

tools/testing/selftests/proc/proc-empty-vm.c

Quoted 5 lines
tools/testing/selftests/proc/proc-empty-vm.c +0 -2
 
-#undef _GNU_SOURCE
-#define _GNU_SOURCE

No! Don't do this. It makes individual test program non-standalone.

Right now you can copy it to some other machine which triggers test fauilure, compile and start debugging instead of remembering which stupid compile flags it requires.

NAK for /proc, sorry. I'd like to keep #define.