[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] poke: Handle the absence of current IOS in map command
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [PATCH] poke: Handle the absence of current IOS in map command |
Date: |
Sun, 28 Feb 2021 13:16:29 +0330 |
On Sun, Feb 28, 2021 at 10:32:55AM +0100, Jose E. Marchesi wrote:
>
> > Do you know why the following test fails?
> > I cannot see the problem.
> >
> > ```
> > /* { dg-do run } */
> >
> > /* { dg-command { .map create foo } } */
> > /* { dg-output "No current IOS" } */
> > ```
>
> A map always requires to be associated with an IO space, which is the
> current.
That's exactly I want to test. If there's no IO space, `poke` should
say "No current IOS" (which it does after my recent patch).
I wrote the above DejaGNU snippet to test this situation, but it reports
failure.
Are exceptions involved here?