]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test 46: use different path lengths to get reliable sort order
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Jul 2012 13:25:54 +0000 (15:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Jul 2012 13:25:54 +0000 (15:25 +0200)
Since the order of the cookies is sorted by the length of the paths,
having them on the same path length will make the test depend on what
order the qsort() implementation will put them. As seen in the
windows/msys output posted by Guenter in this posting:
http://curl.haxx.se/mail/lib-2012-07/0105.html

tests/data/test46

index 391ac8fed962be2464a4ac7b70cb26444e19a3af..2f375fd175715cecfc210aff26210adfde790cc1 100644 (file)
@@ -52,8 +52,8 @@ TZ=GMT
 www.fake.come  FALSE   /       FALSE   1022144953      cookiecliente   si
 www.loser.com  FALSE   /       FALSE   1139150993      UID     99
 %HOSTIP        FALSE   /       FALSE   1439150993      mooo    indeed
-#HttpOnly_%HOSTIP      FALSE   /       FALSE   1439150993      mooo2   indeed2
-%HOSTIP        FALSE   /       FALSE   0       empty   
+#HttpOnly_%HOSTIP      FALSE   /w      FALSE   1439150993      mooo2   indeed2
+%HOSTIP        FALSE   /wa     FALSE   0       empty   
 </file>
 </client>
 
@@ -77,8 +77,8 @@ Cookie: empty=; mooo2=indeed2; mooo=indeed
 www.fake.come  FALSE   /       FALSE   1022144953      cookiecliente   si
 www.loser.com  FALSE   /       FALSE   1139150993      UID     99
 %HOSTIP        FALSE   /       FALSE   1439150993      mooo    indeed
-#HttpOnly_%HOSTIP      FALSE   /       FALSE   1439150993      mooo2   indeed2
-%HOSTIP        FALSE   /       FALSE   0       empty   
+#HttpOnly_%HOSTIP      FALSE   /w      FALSE   1439150993      mooo2   indeed2
+%HOSTIP        FALSE   /wa     FALSE   0       empty   
 %HOSTIP        FALSE   /       FALSE   2054030187      ckyPersistent   permanent
 %HOSTIP        FALSE   /       FALSE   0       ckySession      temporary
 %HOSTIP        FALSE   /       FALSE   0       ASPSESSIONIDQGGQQSJJ    GKNBDIFAAOFDPDAIEAKDIBKE