Skip to content

Conversation

@guitargeek
Copy link
Contributor

ROOT first prints a newline before going over the inputs to separate printouts from the initial "root [0]" prompt. But if root is run with "-q", there is no prompt and we don't need the newline.

Removing this spurious newline completely avoids all output when building ROOT, where the newline used to happen when running hsimple.C.

This is commit is similar to 8e8b6bb, which removed another stray linebreak in the opposite case of running root with no input files.

@guitargeek guitargeek self-assigned this Jan 24, 2026
@github-actions
Copy link

github-actions bot commented Jan 24, 2026

Test Results

    22 files      22 suites   3d 13h 3m 1s ⏱️
 3 770 tests  3 745 ✅  0 💤 25 ❌
75 878 runs  75 755 ✅ 60 💤 63 ❌

For more details on these failures, see this check.

Results for commit 2633d03.

♻️ This comment has been updated with latest results.

@ferdymercury
Copy link
Collaborator

ferdymercury commented Jan 24, 2026

Thanks!

I guess this fixes a part of https://its.cern.ch/jira/browse/ROOT-8344 ?

Copy link
Member

@dpiparo dpiparo left a comment

Choose a reason for hiding this comment

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

provided that the failures are understood.

The problem with `grep -v` is that it returns an non-zero error status
code if nothing was found, which is a prolem if the output has no lines
other than the filtered one. The test would fail because the test driver
thinks something went wrong because of the non-zero status code.
ROOT first prints a newline before going over the inputs to separate
printouts from the initial "root [0]" prompt. But if root is run with
"-q", there is no prompt and we don't need the newline.

Removing this spurious newline completely avoids all output when
building ROOT, where the newline used to happen when running
`hsimple.C`.

This is commit is similar to 8e8b6bb, which removed another
stray linebreak in the opposite case of running `root` with no input
files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants