[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] tests/automate_get_workspace_root broken on MinGW
From: |
Stephen Leake |
Subject: |
[Monotone-devel] tests/automate_get_workspace_root broken on MinGW |
Date: |
Sat, 24 May 2008 12:51:03 -0400 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (windows-nt) |
tests/automate_get_workspace_root/__driver__.lua does:
check(indir("foo",mtn("automate", "get_workspace_root")), 0, true, false)
check(qgrep("^"..cwd.."$", "stdout"))
That breaks on MinGW; the directory path has backslashes in it, which
should be escaped.
I couldn't find a 'quote_regexp' Lua function, nor did a quick search
find one in pcre/*.
Anyway this seems simpler:
check(cwd .. '\n' == readfile("stdout"))
Is there a reason to prefer 'qgrep' over ' == readfile()'?
--
-- Stephe
- [Monotone-devel] tests/automate_get_workspace_root broken on MinGW,
Stephen Leake <=