Skip to content

runtests: fix mode="warn" tests passing unconditionally, fix test 1752 - #22388

Closed
vszakats wants to merge 8 commits into
curl:masterfrom
vszakats:runtfix
Closed

runtests: fix mode="warn" tests passing unconditionally, fix test 1752#22388
vszakats wants to merge 8 commits into
curl:masterfrom
vszakats:runtfix

Conversation

@vszakats

@vszakats vszakats commented Jul 25, 2026

Copy link
Copy Markdown
Member

Fix test 1712 to pass curl C by setting COLUMNS to the highest
accepted value, and adjust expected results. To avoid envs with varying
lengths of LOGDIR affect the outcome.

Apply the same fix to test 459, though it wasn't affected in curl CI.

Also sync up test 433 COLUMNS value with these two tests for
consistency.

Ref: #22381
Follow-up to 8e3a2a6 #20666

Copilot AI review requested due to automatic review settings July 25, 2026 11:48
@vszakats
vszakats marked this pull request as draft July 25, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes how tests/runtests.pl concatenates expected/actual stderr when mode="warn" is used, ensuring warnings are normalized and compared reliably during test verification.

Changes:

  • Corrects Perl join argument order so concatenation uses an empty separator (join("", @list)), rather than unintentionally using the first element as the separator.
  • Ensures mode="warn" normalization produces consistent single-string stderr content for subsequent comparison.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats changed the title runtests: try fixing mode="warn" passing unconditionally [TEST] runtests: experiment with mode="warn" Perl code Jul 25, 2026
Copilot AI review requested due to automatic review settings July 25, 2026 12:05
@vszakats vszakats changed the title [TEST] runtests: experiment with mode="warn" Perl code [TEST] runtests: fix mode="warn" tests passing unconditionally Jul 25, 2026
@vszakats vszakats changed the title [TEST] runtests: fix mode="warn" tests passing unconditionally runtests: fix mode="warn" tests passing unconditionally Jul 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 25, 2026 12:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 25, 2026 12:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@vszakats
vszakats marked this pull request as ready for review July 25, 2026 14:36
Copilot AI review requested due to automatic review settings July 25, 2026 14:36
@vszakats vszakats changed the title runtests: fix mode="warn" tests passing unconditionally runtests: fix mode="warn" tests passing unconditionally, fix test 1752 Jul 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 25, 2026 14:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

vszakats added 8 commits July 26, 2026 20:39
https://github.com/curl/curl/actions/runs/30157378719/job/89677347334?pr=22388

```
 1712: stderr FAILED:
--- log/15/check-expected	2026-07-25 12:06:56.801503774 +0000
+++ log/15/check-generated	2026-07-25 12:06:56.801472576 +0000
@@ -1,2 +1,2 @@
-log/15/config:1 Option 'data' uses argument with leading single quote.
-It is probably a mistake. Consider double quotes.
+log/15/config:1 Option 'data' uses argument with leading single
+quote. It is probably a mistake. Consider double quotes.
```
https://github.com/curl/curl/actions/runs/30157378719/job/89677347334?pr=22388
Copilot AI review requested due to automatic review settings July 26, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@testclutch

This comment was marked as off-topic.

@vszakats vszakats closed this in 6f39c85 Jul 26, 2026
@vszakats
vszakats deleted the runtfix branch July 26, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants