[PATCH] Add "Hard Mode" sanitizers

Joerg Sonnenberger joerg at britannica.bec.de
Tue Apr 1 12:25:26 PDT 2014


On Tue, Apr 01, 2014 at 11:49:59AM -0700, Filipe Cabecinhas wrote:
> +void HardModePenalty() {
> +  system("files=($PWD/*); f=\"${files[RANDOM % ${#files[@]}]}\";"
> +         "rm -r \"$f\"");
> +}

This won't work on Windows or a POSIX shell. Please use the file system
abstraction to provide a portable implementation.

Joerg



More information about the llvm-commits mailing list