public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Update tests to work with Level.DEFAULT. Date: Wed, 12 Mar 2008 00:35:00 -0000 [thread overview] Message-ID: <20080312003531.26364.qmail@sourceware.org> (raw) The branch, master has been updated via eafe41b454dc9e9c6099d7d7fafc15aa93838cf9 (commit) from bac57ca6670cb2cfc1e02de0351288cf38e8a649 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit eafe41b454dc9e9c6099d7d7fafc15aa93838cf9 Author: Andrew Cagney <cagney@redhat.com> Date: Tue Mar 11 20:34:35 2008 -0400 Update tests to work with Level.DEFAULT. frysk-sys/frysk/rsl/ChangeLog 2008-03-11 Andrew Cagney <cagney@redhat.com> * TestOptions.java: Use Level.DEFAULT. * TestLog.java: Ditto. ----------------------------------------------------------------------- Summary of changes: frysk-sys/frysk/rsl/ChangeLog | 3 +++ frysk-sys/frysk/rsl/TestLog.java | 13 +++++++------ frysk-sys/frysk/rsl/TestOptions.java | 10 +++++----- 3 files changed, 15 insertions(+), 11 deletions(-) First 500 lines of diff: diff --git a/frysk-sys/frysk/rsl/ChangeLog b/frysk-sys/frysk/rsl/ChangeLog index 318435f..e11d8dc 100644 --- a/frysk-sys/frysk/rsl/ChangeLog +++ b/frysk-sys/frysk/rsl/ChangeLog @@ -1,5 +1,8 @@ 2008-03-11 Andrew Cagney <cagney@redhat.com> + * TestOptions.java: Use Level.DEFAULT. + * TestLog.java: Ditto. + * Log.java (finest(Class)): Delete. * LogFactory.java (warning(String)): New. (warning(Class)): New. diff --git a/frysk-sys/frysk/rsl/TestLog.java b/frysk-sys/frysk/rsl/TestLog.java index 30725f0..9a0f759 100644 --- a/frysk-sys/frysk/rsl/TestLog.java +++ b/frysk-sys/frysk/rsl/TestLog.java @@ -84,14 +84,14 @@ public class TestLog extends TestLib { get("the.lower.right.hand.side"); // set a level set("the.lower.left", Level.FINE); - checkLevel("the", Level.NONE); - checkLevel("the.lower", Level.NONE); + checkLevel("the", Level.DEFAULT); + checkLevel("the.lower", Level.DEFAULT); checkLevel("the.lower.left", Level.FINE); checkLevel("the.lower.left.hand", Level.FINE); checkLevel("the.lower.left.hand.side", Level.FINE); - checkLevel("the.lower.right", Level.NONE); - checkLevel("the.lower.right.hand", Level.NONE); - checkLevel("the.lower.right.hand.side", Level.NONE); + checkLevel("the.lower.right", Level.DEFAULT); + checkLevel("the.lower.right.hand", Level.DEFAULT); + checkLevel("the.lower.right.hand.side", Level.DEFAULT); } public void testRootLevelFINE() { @@ -106,7 +106,7 @@ public class TestLog extends TestLib { set("this", Level.FINE); checkLevel("this.level", Level.FINE); checkLevel("this", Level.FINE); - checkLevel("", Level.NONE); + checkLevel("", Level.DEFAULT); } public void testSetSuperThenPackageGetsPackage() { @@ -125,5 +125,6 @@ public class TestLog extends TestLib { assertTrue("NONE < FINE", Level.NONE.compareTo(Level.FINE) < 0); assertTrue("FINE > NONE", Level.FINE.compareTo(Level.NONE) > 0); assertTrue("NONE == NONE", Level.NONE.compareTo(Level.NONE) == 0); + assertEquals("DEFAULT", Level.DEFAULT, Level.WARNING); } } diff --git a/frysk-sys/frysk/rsl/TestOptions.java b/frysk-sys/frysk/rsl/TestOptions.java index 478eac7..e9bf1c8 100644 --- a/frysk-sys/frysk/rsl/TestOptions.java +++ b/frysk-sys/frysk/rsl/TestOptions.java @@ -55,20 +55,20 @@ public class TestOptions extends TestLib { } public void testOptionFINE() { - checkLevel("", Level.NONE); + checkLevel("", Level.DEFAULT); parse("FINE"); checkLevel("", Level.FINE); } public void testOptionSubFINE() { - checkLevel("the", Level.NONE); + checkLevel("the", Level.DEFAULT); parse("the=FINE"); checkLevel("the", Level.FINE); } public void testOptionCommaOption() { - checkLevel("lhs", Level.NONE); - checkLevel("rhs", Level.NONE); + checkLevel("lhs", Level.DEFAULT); + checkLevel("rhs", Level.DEFAULT); parse("lhs=FINE,rhs=FINEST"); checkLevel("lhs", Level.FINE); checkLevel("rhs", Level.FINEST); @@ -76,7 +76,7 @@ public class TestOptions extends TestLib { } public void testOptionPackage() { - checkLevel("frysk", Level.NONE); + checkLevel("frysk", Level.DEFAULT); parse("frysk"); checkLevel("frysk", Level.FINE); } hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-03-12 0:35 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080312003531.26364.qmail@sourceware.org \ --to=cagney@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).