@@ -105,6 +105,7 @@ public void testConvertMessagesFromJson() throws IOException {
105105
106106 URL emptyUrl = new File ("" ).toURI ().toURL ();
107107 GoblintPosition defaultPos = new GoblintPosition (1 , 1 , 1 , 1 , emptyUrl );
108+ URL exampleUrl = new File ("src/example.c" ).toURI ().toURL ();
108109
109110 List <AnalysisResult > response = new ArrayList <>();
110111 response .add (
@@ -121,24 +122,24 @@ public void testConvertMessagesFromJson() throws IOException {
121122 );
122123 response .add (
123124 new GoblintMessagesAnalysisResult (
124- new GoblintPosition (4 , 4 , 4 , 12 , emptyUrl ),
125+ new GoblintPosition (4 , 4 , 4 , 12 , exampleUrl ),
125126 "[Race] Memory location myglobal (race with conf. 110)" ,
126127 "Warning" ,
127128 List .of (
128129 Pair .make (
129- new GoblintPosition (10 , 10 , 2 , 21 , emptyUrl ),
130+ new GoblintPosition (10 , 10 , 2 , 21 , exampleUrl ),
130131 "write with [mhp:{tid=[main, t_fun@src/example.c:17:3-17:40#top]}, lock:{mutex1}, thread:[main, t_fun@src/example.c:17:3-17:40#top]] (conf. 110) (exp: & myglobal)"
131132 ),
132133 Pair .make (
133- new GoblintPosition (19 , 19 , 2 , 21 , emptyUrl ),
134+ new GoblintPosition (19 , 19 , 2 , 21 , exampleUrl ),
134135 "write with [mhp:{tid=[main]; created={[main, t_fun@src/example.c:17:3-17:40#top]}}, lock:{mutex2}, thread:[main]] (conf. 110) (exp: & myglobal)"
135136 ),
136137 Pair .make (
137- new GoblintPosition (10 , 10 , 2 , 21 , emptyUrl ),
138+ new GoblintPosition (10 , 10 , 2 , 21 , exampleUrl ),
138139 "read with [mhp:{tid=[main, t_fun@src/example.c:17:3-17:40#top]}, lock:{mutex1}, thread:[main, t_fun@src/example.c:17:3-17:40#top]] (conf. 110) (exp: & myglobal)"
139140 ),
140141 Pair .make (
141- new GoblintPosition (19 , 19 , 2 , 21 , emptyUrl ),
142+ new GoblintPosition (19 , 19 , 2 , 21 , exampleUrl ),
142143 "read with [mhp:{tid=[main]; created={[main, t_fun@src/example.c:17:3-17:40#top]}}, lock:{mutex2}, thread:[main]] (conf. 110) (exp: & myglobal)"
143144 )
144145 )
0 commit comments