@@ -115,6 +115,36 @@ public void issue555() {
115
115
}
116
116
}
117
117
118
+ /**
119
+ * support void loop{};
120
+ */
121
+ @ SuppressWarnings ("static-method" )
122
+ @ Test
123
+ public void issue687 () {
124
+ Map <String , String > unoOptions = new HashMap <>();
125
+ BoardDescriptor unoBoardid = BoardsManager .getBoardID ("package_index.json" , "arduino" , "Arduino AVR Boards" ,
126
+ "uno" , unoOptions );
127
+
128
+ IProject theTestProject = null ;
129
+ String projectName = "issue687" ;
130
+ IPath templateFolder = Shared .getTemplateFolder (projectName );
131
+ CodeDescriptor codeDescriptor = CodeDescriptor .createCustomTemplate (templateFolder );
132
+ try {
133
+ theTestProject = unoBoardid .createProject (projectName , null ,
134
+ ConfigurationDescriptor .getDefaultDescriptors (), codeDescriptor , new CompileOptions (null ),
135
+ new NullProgressMonitor ());
136
+ Shared .waitForAllJobsToFinish (); // for the indexer
137
+ theTestProject .build (IncrementalProjectBuilder .FULL_BUILD , new NullProgressMonitor ());
138
+ if (Shared .hasBuildErrors (theTestProject )) {
139
+ fail ("Failed to compile the project:" + projectName + " issue687 is not fixed" );
140
+ }
141
+ } catch (Exception e ) {
142
+ fail ("Failed to create the project:" + projectName + " issue687 is not tested" );
143
+ return ;
144
+ }
145
+
146
+ }
147
+
118
148
/**
119
149
* This test will fail if the arduino compile option are not taken into
120
150
* account To do sa a bunch of defines are added to the command line and the
0 commit comments