Rewrite tests to avoid assuming Linux-specific configuration settings.

Especially avoid the expectation that we compile with PIC by default.

A follow-up change changes the default target CPU used in the tests to be
the host CPU, which would otherwise break the tests.

--
MOS_MIGRATED_REVID=132533255
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java b/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
index c5960dd..98455b7 100644
--- a/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
+++ b/src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java
@@ -856,6 +856,7 @@
    */
   @Test
   public void testPostProcessedConfigurableAttributes() throws Exception {
+    useConfiguration("--cpu=k8");
     reporter.removeHandler(failFastHandler); // Expect errors from action conflicts.
     scratch.file("conflict/BUILD",
         "config_setting(name = 'a', values = {'test_arg': 'a'})",