Test the behaviour of mixed domain_scope and search_options controls.
[samba.git] / testprogs / ejs / samr.js
index b518fea234b84d37d69f647ce8ebc91670ae3ccf..fbdae974bea4500194e48ac69f73681027b7530e 100755 (executable)
@@ -3,14 +3,12 @@
   test samr calls from ejs
 */     
 
-var options = new Object();
-
-ok = GetOptions(ARGV, options,
-               "POPT_AUTOHELP",
-               "POPT_COMMON_SAMBA",
-               "POPT_COMMON_CREDENTIALS");
-if (ok == false) {
-   println("Failed to parse options: " + options.ERROR);
+var options = GetOptions(ARGV, 
+                        "POPT_AUTOHELP",
+                        "POPT_COMMON_SAMBA",
+                        "POPT_COMMON_CREDENTIALS");
+if (options == undefined) {
+   println("Failed to parse options");
    return -1;
 }