monotone

monotone Commit Details

Date:2010-11-25 22:12:05 (8 years 6 months ago)
Author:Richard Levitte
Branch:net.venge.monotone
Commit:f4d9a9a65688dbe7f3a0e074edb38db5308db221
Parents: 37610c8e8486e1ff2369f6d8a35c1dbe9ffbd028
Message:Disable the test that looks for tildes anywhere in a tilde-expanded

path, as tildes can exist in any directory name (and I happened to see
this test fail because I was running it in a directory that contained
a tilde).
Either way, a test to find a tilde anywhere is pretty unnecessary, as
the test before showed that *something* happened, which is the
requirement anyway, judging from the comment higher up.
Changes:
Munit-tests/paths.cc (1 diff)

File differences

unit-tests/paths.cc
634634
635635
636636
637
637
638
639
640
641
638642
639643
640644
#else
UNIT_TEST_CHECK(tilde_expanded[0] == '/');
#endif
UNIT_TEST_CHECK(tilde_expanded.find('~') == string::npos);
// This test should not be performed, tildes are allowed in the middle
// of paths, and we have already shown in the previous test that what
// we expected happened (or didn't).
//UNIT_TEST_CHECK(tilde_expanded.find('~') == string::npos);
// on Windows, ~name is not expanded
#ifdef WIN32
UNIT_TEST_CHECK(system_path("~this_user_does_not_exist_anywhere")

Archive Download the corresponding diff file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status