Changeset d9e190 in git for libpolys/tests/cxxtestgen.pl


Ignore:
Timestamp:
Apr 21, 2011, 4:41:50 PM (13 years ago)
Author:
Mohamed Barakat <mohamed.barakat@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
6d28ba7962ff547926c1a0ce553ff7070a77746e
Parents:
4f07ef5931598da3a05c62cb735d25ecaac0c5a9
git-author:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-04-21 16:41:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:27+01:00
Message:
got rid of program_invocation_name (non-portable) and replaced it by an educated guess
changed the test generation script to save a copy of the program name in main
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/tests/cxxtestgen.pl

    r4f07ef rd9e190  
    536536sub writeMain() {
    537537  if ( $gui ) {
     538    print "char* argv0;\n";
    538539    print "int main( int argc, char *argv[] ) {\n";
     540    print "argv0 = argv[0];\n";
    539541    $noStaticInit &&
    540542      print " CxxTest::initialize();\n";
     
    543545  }
    544546  elsif ( $runner ) {
    545     print "int main() {\n";
     547    print "char* argv0;\n";
     548    print "int main( int argc, char *argv[] ) {\n";
     549    print "argv0 = argv[0];\n";
    546550    $noStaticInit &&
    547551      print " CxxTest::initialize();\n";
Note: See TracChangeset for help on using the changeset viewer.