Fossil SCM
Make the read-only json test work on Windows.
Commit
938122da85336d15b7a57fe8b43fc4142938d788
Parent
09a46c287359f04…
1 file changed
+4
-2
+4
-2
| --- test/json.test | ||
| +++ test/json.test | ||
| @@ -674,17 +674,19 @@ | ||
| 674 | 674 | test json-ROrepo-1-1 {$CODE == 0} |
| 675 | 675 | test json-ROrepo-1-2 {[regexp {\}\s*$} $RESULT]} |
| 676 | 676 | test json-ROrepo-1-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} |
| 677 | 677 | test_json_envelope_ok json-http-timeline1 |
| 678 | 678 | protOut "chmod 444 repo" |
| 679 | -catch {exec chmod 444 .rep.fossil}; # Unix. What about Win? | |
| 679 | +catch {exec chmod 444 .rep.fossil}; # Unix | |
| 680 | +catch {exec attrib +r .rep.fossil}; # Windows | |
| 680 | 681 | fossil_http_json /json/timeline/checkin $U1Cookie -expectError |
| 681 | 682 | test json-ROrepo-2-1 {$CODE != 0} |
| 682 | 683 | test json-ROrepo-2-2 {[regexp {\}\s*$} $RESULT]} knownBug |
| 683 | 684 | test json-ROrepo-2-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} knownBug |
| 684 | 685 | #test_json_envelope_ok json-http-timeline2 |
| 685 | -catch {exec chmod 666 .rep.fossil}; # Unix. What about Win? | |
| 686 | +catch {exec attrib -r .rep.fossil}; # Windows | |
| 687 | +catch {exec chmod 666 .rep.fossil}; # Unix | |
| 686 | 688 | |
| 687 | 689 | |
| 688 | 690 | #### Result Codes |
| 689 | 691 | # Test cases designed to stimulate each (documented) error code. |
| 690 | 692 | |
| 691 | 693 |
| --- test/json.test | |
| +++ test/json.test | |
| @@ -674,17 +674,19 @@ | |
| 674 | test json-ROrepo-1-1 {$CODE == 0} |
| 675 | test json-ROrepo-1-2 {[regexp {\}\s*$} $RESULT]} |
| 676 | test json-ROrepo-1-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} |
| 677 | test_json_envelope_ok json-http-timeline1 |
| 678 | protOut "chmod 444 repo" |
| 679 | catch {exec chmod 444 .rep.fossil}; # Unix. What about Win? |
| 680 | fossil_http_json /json/timeline/checkin $U1Cookie -expectError |
| 681 | test json-ROrepo-2-1 {$CODE != 0} |
| 682 | test json-ROrepo-2-2 {[regexp {\}\s*$} $RESULT]} knownBug |
| 683 | test json-ROrepo-2-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} knownBug |
| 684 | #test_json_envelope_ok json-http-timeline2 |
| 685 | catch {exec chmod 666 .rep.fossil}; # Unix. What about Win? |
| 686 | |
| 687 | |
| 688 | #### Result Codes |
| 689 | # Test cases designed to stimulate each (documented) error code. |
| 690 | |
| 691 |
| --- test/json.test | |
| +++ test/json.test | |
| @@ -674,17 +674,19 @@ | |
| 674 | test json-ROrepo-1-1 {$CODE == 0} |
| 675 | test json-ROrepo-1-2 {[regexp {\}\s*$} $RESULT]} |
| 676 | test json-ROrepo-1-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} |
| 677 | test_json_envelope_ok json-http-timeline1 |
| 678 | protOut "chmod 444 repo" |
| 679 | catch {exec chmod 444 .rep.fossil}; # Unix |
| 680 | catch {exec attrib +r .rep.fossil}; # Windows |
| 681 | fossil_http_json /json/timeline/checkin $U1Cookie -expectError |
| 682 | test json-ROrepo-2-1 {$CODE != 0} |
| 683 | test json-ROrepo-2-2 {[regexp {\}\s*$} $RESULT]} knownBug |
| 684 | test json-ROrepo-2-3 {![regexp {SQLITE_[A-Z]+:} $RESULT]} knownBug |
| 685 | #test_json_envelope_ok json-http-timeline2 |
| 686 | catch {exec attrib -r .rep.fossil}; # Windows |
| 687 | catch {exec chmod 666 .rep.fossil}; # Unix |
| 688 | |
| 689 | |
| 690 | #### Result Codes |
| 691 | # Test cases designed to stimulate each (documented) error code. |
| 692 | |
| 693 |