On Mon, 13 Jan 2020 13:48:17 +0100 David Hildenbrand <david@xxxxxxxxxx> wrote: [...] > >> > >> I wonder if something like the following would be possible: > >> > >> expect_pgm_int(); > >> ... > >> asm volatiole(); > >> ... > >> sclp_wait_busy(); > >> check_pgm_int_code(PGM_INT_CODE_SPECIFICATION); > > > > we do not expect a specification exception, if that happens it's > > a bug and the test should rightfully fail. > > Which one do we expect? (you're not checking for a specific one, > should you?) nothing, the call should succeed :) > > > >> We would have to clear "sclp_busy" when we get a progam interrupt > >> on a servc instruction - shouldn't be too hard to add to the > >> program exception handler. > > > > Sure that could be done, but is it worth it to rework the program > > interrupt handler only for one unit test? > > Good point. I don't like this particular code, but I can live with it > :) >