New file for tests related to options interface.
authorNeil Jerram <neil@ossau.uklinux.net>
Wed, 6 Nov 2002 00:38:44 +0000 (00:38 +0000)
committerNeil Jerram <neil@ossau.uklinux.net>
Wed, 6 Nov 2002 00:38:44 +0000 (00:38 +0000)
test-suite/ChangeLog
test-suite/Makefile.am
test-suite/tests/options.test [new file with mode: 0644]

index 28668e6..170e57f 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-06  Neil Jerram  <neil@ossau.uklinux.net>
+
+       * tests/options.test: New.
+
 2002-10-04  Rob Browning  <rlb@defaultvalue.org>
 
        * tests/numbers.test ("expt"): add tests.
index 5f9bd17..945f234 100644 (file)
@@ -20,6 +20,7 @@ SCM_TESTS = tests/alist.test                  \
            tests/multilingual.nottest          \
            tests/numbers.test                  \
            tests/optargs.test                  \
+           tests/options.test                  \
            tests/ports.test                    \
            tests/r4rs.test                     \
            tests/reader.test                   \
diff --git a/test-suite/tests/options.test b/test-suite/tests/options.test
new file mode 100644 (file)
index 0000000..1b1da09
--- /dev/null
@@ -0,0 +1,30 @@
+;;;; options.test --- test suite for options interface -*- scheme -*-
+;;;;
+;;;;   Copyright (C) 2002 Free Software Foundation, Inc.
+;;;; 
+;;;; This program is free software; you can redistribute it and/or modify
+;;;; it under the terms of the GNU General Public License as published by
+;;;; the Free Software Foundation; either version 2, or (at your option)
+;;;; any later version.
+;;;; 
+;;;; This program is distributed in the hope that it will be useful,
+;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;;; GNU General Public License for more details.
+;;;; 
+;;;; You should have received a copy of the GNU General Public License
+;;;; along with this software; see the file COPYING.  If not, write to
+;;;; the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+;;;; Boston, MA 02111-1307 USA
+
+(use-modules (test-suite lib))
+
+(with-test-prefix "options"
+
+  (pass-if "setting an option doesn't reset other options"
+          (let ()
+            (debug-enable 'backwards)
+            (debug-set! maxdepth 555)
+            (if (memq 'backwards (debug-options)) #t #f)))
+
+  )