1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

Modifies command line quoting in c-api.test

On MinGW, 'system' uses a non-posix shell that does not handle
apostrophe as a quoting character. For this test, quoting a command-line
with double quotes allows it to be run with both /bin/sh and cmd.exe.

* test-suite/tests/c-api.test (egrep): use double quotes when
  quoting command line
This commit is contained in:
Mike Gran 2022-10-02 07:30:48 -07:00
parent f5c064576d
commit 45cc892fe3

View file

@ -22,7 +22,7 @@
(define srcdir (cdr (assq 'srcdir %guile-build-info)))
(define (egrep string filename)
(zero? (system (string-append "grep -E '" string "' " filename
(zero? (system (string-append "grep -E \"" string "\" " filename
" >" %null-device))))
(define (seek-offset-test dirname)