         self.fail()
       } catch Errno.interrupted {
         // Success!
-        self.expectEqual(mocking.trace.dequeue(), self.expected)
+        self.expectEqual(self.expected, mocking.trace.dequeue())
       } catch {
         self.fail()
       }

        mocking.forceErrno = .counted(errno: EINTR, count: 3)

        try body(interruptable)
        self.expectEqual(mocking.trace.dequeue(), self.expected) // EINTR
        self.expectEqual(mocking.trace.dequeue(), self.expected) // EINTR
        self.expectEqual(mocking.trace.dequeue(), self.expected) // EINTR
        self.expectEqual(mocking.trace.dequeue(), self.expected) // Success
      } catch Errno.interrupted {
        self.expectFalse(interruptable)
        self.expectEqual(mocking.trace.dequeue(), self.expected) // EINTR
      } catch {
        self.fail()
      }

      // Test our API mappings to the lower-level syscall invocation
      do {
        try body(true)
        self.expectEqual(self.expected, mocking.trace.dequeue())
      } catch {
        self.fail()
      }
