Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test directive in i18533 #19802

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Fix test directive in i18533 #19802

merged 1 commit into from
Feb 28, 2024

Conversation

hamzaremmal
Copy link
Member

[test_windows_full]

@hamzaremmal hamzaremmal self-assigned this Feb 27, 2024
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

oops, I didn't check this syntax before, but it seems PR CI only runs java 17 anyway. So this is the correct syntax looking at e.g. tests/pos/t12396/A_1.java

@@ -1,5 +1,4 @@
//> using javacOpt --enable-preview --source 17
//> test: -jvm 17+
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently, we should only put one of them if tests are in a folder

Copy link
Contributor

Choose a reason for hiding this comment

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

"historically", a "compilation group" for tests foo_1.scala, bar_1.scala get the same options because they are compiled together, so only one is needed per group. (Not sure if de-duplication is needed for anything.)

Copy link
Member Author

Choose a reason for hiding this comment

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

I would expect to drop duplicate directives or raise an error if they're directives that contradicts each other.

@@ -1,8 +1,8 @@
-- Error: tests/neg/i18533/Non-SCALA_ONLY.java:4:7 ---------------------------------------------------------------------
Copy link
Member Author

Choose a reason for hiding this comment

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

The order is important here (case sensitivity), since it's failing on Windows...

@hamzaremmal hamzaremmal merged commit 93d8b1a into scala:main Feb 28, 2024
19 checks passed
@hamzaremmal hamzaremmal deleted the fix-main branch February 28, 2024 05:57
hamzaremmal added a commit that referenced this pull request Feb 28, 2024
In light of the issue (post merge) of #19080 . We should add test
compilation to windows_fast (not only windows_full).

Also see: #19802

cc @sjrd
@Kordyjan Kordyjan added this to the 3.4.2 milestone Mar 28, 2024
WojciechMazur added a commit that referenced this pull request Jul 3, 2024
Backports #19802 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants