472963 Broken regular expression in configure.ac
473604 Fix bug472219.c compile failure with Clang 16
473677 make check compile failure with Clang 16 based on GCC 13.x
+n-i-bz Allow arguments with spaces in .valgrindrc files
To see details of a given bug, visit
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
{
HChar* tmp;
HChar* cp = s;
+ int quoted = '\0';
vg_assert(cp);
while (True) {
+ HChar* out;
// We have alternating sequences: blanks, non-blanks, blanks...
// copy the non-blanks sequences, and add terminating '\0'
+ // deal with " or '-quoted strings properly.
while (VG_(isspace)(*cp)) cp++;
if (*cp == 0) break;
- tmp = cp;
- while ( !VG_(isspace)(*cp) && *cp != 0 ) cp++;
+ tmp = out = cp;
+ while ( (quoted || !VG_(isspace)(*cp)) && *cp) {
+ if (*cp == quoted) {
+ quoted = '\0';
+ } else if (*cp == '\'' || *cp == '"') {
+ quoted = *cp;
+ } else {
+ *out++ = *cp;
+ }
+ cp++;
+ }
+ if (out < cp) *out++ = '\0';
if ( *cp != 0 ) *cp++ = '\0'; // terminate if not the last
add_string( VG_(args_for_valgrind), tmp );
}
}
if (0 == VG_(strcmp)(argv[i], "--command-line-only=yes"))
augment = False;
+ /* mainly to allow overriding the regtest default */
+ if (0 == VG_(strcmp)(argv[i], "--command-line-only=no")) {
+ augment = True;
+ }
if (argv[i][0] != '-')
break;
add_string( tmp_xarray, argv[i] );
pth_stackalign.stdout.exp pth_stackalign.vgtest \
pth_2sig.stderr.exp-linux pth_2sig.stderr.exp-solaris pth_2sig.vgtest \
pth_term_signal.stderr.exp pth_term_signal.vgtest \
+ rc_option_with_spaces.stderr.exp rc_option_with_spaces.vgtest \
rcrl.stderr.exp rcrl.stdout.exp rcrl.vgtest \
readline1.stderr.exp readline1.stdout.exp \
readline1.vgtest \
--- /dev/null
+prereq: echo "--log-file='file with spaces.log'" > .valgrindrc
+vgopts: --command-line-only=no
+prog: ../../tests/true
+post: test -f "./file with spaces.log"
+cleanup: rm -f "./file with spaces.log" ./.valgrindrc