Bug 4533 - make-test-script.pl bug
: make-test-script.pl bug
Status: RESOLVED INVALID
: GRAM
wsrf tests
: 4.0.2
: All Solaris
: P2 normal
: 4.2
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2006-06-19 00:11 by
Modified: 2008-02-04 11:29 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-06-19 00:11:21
"$ARGV[0]" is not a hush. Therefore, "exists" cannot be used. 

*** make-test-script.pl.org       Wed Nov  9 06:26:15 2005
--- make-test-script.pl           Thu Apr 27 11:02:25 2006
***************
*** 24,30 ****
             "debug" => \$debug,
             "help|h" => \$help);

! if (exists $ARGV[0]) {
      $script_name = $ARGV[0];
  }

--- 24,30 ----
             "debug" => \$debug,
             "help|h" => \$help);

! if ($ARGV[0] ne "") {
      $script_name = $ARGV[0];
  }
------- Comment #1 From 2007-09-19 11:38:01 -------
Reassigning to current GRAM developer to close/fix as appropriate.
------- Comment #2 From 2008-02-04 11:29:55 -------
From the perlfunc man page:

       exists EXPR
               Given an expression that specifies a hash element or array ele-
               ment, returns true if the specified element in the hash or
               array has ever been initialized, even if the corresponding
               value is undefined.  The element is not autovivified if it
               doesn't exist.