mbien commented on PR #7201:
URL: https://github.com/apache/netbeans/pull/7201#issuecomment-2046501282
the diff below would make the tests pass. It moves the tests to the
build-tools job which is JDK 17 and disables some. Feel free to apply to your
changes if you want.
```diff
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8c1fcf4..ac9f4ec 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -922,6 +922,10 @@
if: ${{ matrix.java == '17' }}
run: ant $OPTS -f extide/o.apache.tools.ant.module test
+ - name: apisupport.ant
+ if: ${{ matrix.java == '17' }}
+ run: ant $OPTS -f apisupport/apisupport.ant test
+
- name: Create Test Summary
uses: test-summary/action@v2
if: failure()
@@ -1544,9 +1548,6 @@
- name: Extract
run: tar --zstd -xf build.tar.zst
- - name: apisupport.ant
- run: ant $OPTS -f apisupport/apisupport.ant test
-
- name: apisupport.project
run: ant $OPTS -f apisupport/apisupport.project test
diff --git a/apisupport/apisupport.ant/nbproject/project.properties
b/apisupport/apisupport.ant/nbproject/project.properties
index 03ab15a..eb26886 100644
--- a/apisupport/apisupport.ant/nbproject/project.properties
+++ b/apisupport/apisupport.ant/nbproject/project.properties
@@ -21,39 +21,16 @@
requires.nb.javac=true
javac.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.8
-javac.release=17
+javac.source=11
+javac.target=11
javadoc.arch=${basedir}/arch.xml
test-unit-sys-prop.test.nbroot=${nb_all}
test-unit-sys-prop.test.netbeans.dest.dir=${netbeans.dest.dir}
test-unit-sys-prop.java.awt.headless=true
-test.config.stableBTD.includes=**/*Test.class
-test.config.stableBTD.excludes=\
- **/AccessibilityQueryImplTest.class,\
- **/AntArtifactProviderImplTest.class,\
- **/ApisupportAntUtilsTest.class,\
- **/AvoidModuleListInProjectConstructorTest.class,\
- **/BrandingSupportTest.class,\
- **/BuildZipDistributionTest.class,\
- **/ClassPathProviderImplTest.class,\
- **/CustomizerLibrariesTest.class,\
- **/EvaluatorTest.class,\
- **/GlobalJavadocForBinaryImplTest.class,\
- **/GlobalSourceForBinaryImplTest.class,\
- **/Issue167725DeadlockTest.class,\
- **/JavadocForBinaryImplTest.class,\
- **/ModuleActionsTest.class,\
- **/ModuleListTest.class,\
- **/ModuleTypePanelTest.class,\
- **/NbModuleProjectTest.class,\
- **/ProjectXMLManagerTest.class,\
- **/SingleModulePropertiesTest.class,\
- **/SourceForBinaryImplTest.class,\
- **/SourceLevelQueryImplTest.class,\
- **/SubprojectProviderImplTest.class,\
- **/SuiteOperationsTest.class,\
- **/TestEntryTest.class,\
- **/UnitTestForSourceQueryImplTest.class,\
- **/UpdateTrackingFileOwnerQueryTest.class
+test.config.default.includes=**/*Test.class
+test.config.default.excludes=\
+ **/ExternalBuildDirTest.class,\
+ **/UseHtml4JavaTest.class
+
diff --git
a/apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/CompilationDependencyTest.java
b/apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/CompilationDependencyTest.java
index 597b38d..ef778b0 100644
---
a/apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/CompilationDependencyTest.java
+++
b/apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/CompilationDependencyTest.java
@@ -88,8 +88,9 @@
assertFalse("Successfully compiled when is invalid specification
version",
testingProject.getModuleJarLocation().exists());
}
-
- public void testCompileAgainstPublicPackage() throws Exception {
+
+ // TODO fixme
+ public void fails_on_11_testCompileAgainstPublicPackage() throws
Exception {
NbModuleProject testingProject =
TestBase.generateStandaloneModule(getWorkDir(), "testing");
testingProject.open();
FileObject buildScript = findBuildXml(testingProject);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists