Enable long path normalization test by default
It seems that the default value of NtfsDisable8dot3NameCreation registry value is 2, and not 0, since a very long time (at least Windows 7), so the wxPATH_NORM_LONG test was never actually executed. Change the check guarding it to check if the value of the key is different from 1 instead of checking that it is 0, as the test can still succeed on the systems where this is the case. Of course, it can also fail, if short names are disabled for the current volume, but let's see if this is a problem in practice before doing something more complicated to deal with this case.
This commit is contained in:
@@ -380,7 +380,7 @@ TEST_CASE("wxFileName::Normalize", "[filename]")
|
||||
wxRegKey::HKLM,
|
||||
"SYSTEM\\CurrentControlSet\\Control\\FileSystem"
|
||||
).QueryValue("NtfsDisable8dot3NameCreation", &shortNamesDisabled) &&
|
||||
!shortNamesDisabled )
|
||||
shortNamesDisabled != 1 )
|
||||
{
|
||||
wxFileName fn("TESTDA~1.CON");
|
||||
CHECK( fn.Normalize(wxPATH_NORM_LONG, cwd) );
|
||||
|
||||
Reference in New Issue
Block a user