On Nov 8, 2007, at 2:53 PM, Devang Patel wrote: > > On Nov 8, 2007, at 2:48 PM, Chris Lattner wrote: > >> >> On Nov 8, 2007, at 2:40 PM, Tanya Lattner wrote: >> >>> >>> On Nov 8, 2007, at 2:39 PM, Devang Patel wrote: >>> >>>> >>>> On Nov 8, 2007, at 2:35 PM, Dale Johannesen wrote: >>>> >>>>> The error message is clean, >>>>> but something like dg-require would be even better. >>>> >>>> >>>> We do not have anything like dg-require. >>>> >>> >>> What is dg-require? > > It checks whether target supports particular feature or not before > running the test. > >>> >>> >>> If you can tell me how to get if llvm-gcc is 64 bit, I can see >>> what I >>> can do. > >>> >> >> How about: >> >> XREQUIRE: llvm-gcc -xc /dev/null -S -o /dev/null -m64 >> >> If that command returns success, then the -m64 option is supported. >> >> Crazy? Reasonable? > > > Reasonable from user's point of view :) If XREQUIRE return success > then only test is run otherwise test is not run. >
Ok, I can do this but I may need a day or so to get to it. geez.. two changes to the dejagnu testing framework in the same week. I usually try to avoid writing tcl code as much as possible ;) -Tanya > - > Devang > > > > _______________________________________________ > llvm-commits mailing list > llvm-commits@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits