I would like to use small caps for short text sections in a beamer presentation. In a normal article, the following produces small caps in the TeX Gyre Heros font, as shown in this question:
\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Tex Gyre Heros}
\begin{document}
\textsc{Test text} Test text
\end{document}
while the following beamer document produces a warning and serif small caps:
\documentclass{beamer}
\usefonttheme{professionalfonts}
\usepackage{unicode-math}
\setmainfont{Tex Gyre Heros}
\begin{document}
\begin{frame}
\textsc{Test text} Test text
\end{frame}
\end{document}
with the warning:
LaTeX Font Warning: Font shape `EU2/lmss/m/sc' in size <10.95> not available
(Font) Font shape `EU2/lmr/m/sc' tried instead on input line 9.
How can I use small caps with unicode-math/fontspec in beamer?

setmainfontinteracts with beamer to produce sans-serif font for everything except small caps? – darthbith Jan 12 '15 at 19:02