File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -761,6 +761,12 @@ mod tests {
761761 library_gbf : & str ,
762762 entrypoint : & str ,
763763 ) {
764+ let cargo_dir = match std:: env:: var ( "CARGO_MANIFEST_DIR" ) {
765+ Ok ( v) => v,
766+ Err ( err) => panic ! ( "Could not open cargo folder. {}" , err) ,
767+ } ;
768+ let library_path =
769+ std:: path:: Path :: new ( & cargo_dir) . join ( format ! ( "resources/{}" , "library.goto" ) ) ;
764770 let esbmc = match std:: env:: var ( "ESBMC" ) {
765771 Ok ( v) => v,
766772 Err ( err) => panic ! ( "Could not get ESBMC bin. {}" , err) ,
@@ -770,7 +776,7 @@ mod tests {
770776 . arg ( "--function" )
771777 . arg ( entrypoint)
772778 . arg ( "--binary" )
773- . arg ( "/home/rafaelsa/repos/goto-transcoder/resources/library.goto" )
779+ . arg ( library_path )
774780 . arg ( input_gbf)
775781 . args ( args)
776782 . output ( )
You can’t perform that action at this time.
0 commit comments