tests: move the check of exec.skip to detect compilation error