[llvm-commits] [test-suite] r105429 - /test-suite/trunk/MultiSource/Applications/lemon/lemon.c
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 3 16:00:21 PDT 2010
Author: stoklund
Date: Thu Jun 3 18:00:21 2010
New Revision: 105429
URL: http://llvm.org/viewvc/llvm-project?rev=105429&view=rev
Log:
Make sure that lemon can find its template file next to the input file.
This prevents spurious output on stderr and it makes more code run (the output
part needs the template).
Modified:
test-suite/trunk/MultiSource/Applications/lemon/lemon.c
Modified: test-suite/trunk/MultiSource/Applications/lemon/lemon.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/lemon/lemon.c?rev=105429&r1=105428&r2=105429&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/lemon/lemon.c (original)
+++ test-suite/trunk/MultiSource/Applications/lemon/lemon.c Thu Jun 3 18:00:21 2010
@@ -3052,7 +3052,7 @@
}else if( access(templatename,004)==0 ){
tpltname = templatename;
}else{
- tpltname = pathsearch(lemp->argv0,templatename,0);
+ tpltname = pathsearch(lemp->filename,templatename,0);
}
if( tpltname==0 ){
fprintf(stderr,"Can't find the parser driver template file \"%s\".\n",
More information about the llvm-commits
mailing list