bug-dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-dejagnu] Patch for building with Sun Workshop 6.01


From: Paul A. Houghton
Subject: [Bug-dejagnu] Patch for building with Sun Workshop 6.01
Date: Fri, 27 Jul 2001 12:06:07 -0600

 The Sun Workshop Compiler (6.01) had some problems with building the
 latest version of DejaGnu (CVS co on 7/27/01). The patch included
 makes the compiler happy and should not have any negative impacts on
 other compilers.

 Also, it would be easier to use DejaGnu on non 'GCC' platforms if you
 would specify the '-i' to automake before you build a
 distribution. It's not that big of a deal (I just run automake -i in
 the base and example/calc directories before I run configure), but it
 took me a while to figure out how to get around the GCC specific
 dependancy flags.

 Thanks,
 Paul Houghton
 address@hidden

diff -rc /export/home/houghton/prj/dejagnu/dejagnu.h dejagnu/dejagnu.h
*** /export/home/houghton/prj/dejagnu/dejagnu.h Wed May 30 09:40:27 2001
--- dejagnu/dejagnu.h   Fri Jul 27 09:19:10 2001
***************
*** 76,87 ****
  #endif
  #endif
  
! char *outstate[] = {
      "FAILED: ",
      "PASSED: ",
      "UNTESTED: ",
      "UNRESOLVED: "
  };
  
  #if 0
  extern ios& __iomanip_testout (ios&, int);
--- 76,89 ----
  #endif
  #endif
  
! const char * outstate_list[] = {
      "FAILED: ",
      "PASSED: ",
      "UNTESTED: ",
      "UNRESOLVED: "
  };
+ 
+ const char ** outstate = outstate_list;
  
  #if 0
  extern ios& __iomanip_testout (ios&, int);
diff -rc /export/home/houghton/prj/dejagnu/testsuite/libdejagnu/unit.cc 
dejagnu/testsuite/libdejagnu/unit.cc
*** /export/home/houghton/prj/dejagnu/testsuite/libdejagnu/unit.cc      Fri May 
25 23:55:28 2001
--- dejagnu/testsuite/libdejagnu/unit.cc        Fri Jul 27 09:19:32 2001
***************
*** 25,38 ****
  // We have to so this silly crap with renaming the output string, so the 
generic
  // Tcl code that looks for the output state gets confused, and records random
  // duplicate messages.
! char *os1[] = {
      "FAI: ",
      "PAS: ",
      "UNT: ",
      "UNR: "
  };
  
! char *os2[] = {
      "FAILED: ",
      "PASSED: ",
      "UNTESTED: ",
--- 25,38 ----
  // We have to so this silly crap with renaming the output string, so the 
generic
  // Tcl code that looks for the output state gets confused, and records random
  // duplicate messages.
! const char * os1[] = {
      "FAI: ",
      "PAS: ",
      "UNT: ",
      "UNR: "
  };
  
! const char * os2[] = {
      "FAILED: ",
      "PASSED: ",
      "UNTESTED: ",


 ---
    /\         __@
   /  \/\    _-\<,_    IMHO - address@hidden   
 _/   /  \__(*)/ (*)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]