aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/cpp/util/dummy_test.cc
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2017-02-10 10:38:14 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2017-02-10 15:36:03 +0000
commitd2cba292a6904d188d5a903d5baee3ba873b0ec5 (patch)
treec2c111650fe560f1cf1b3c5541c2cbfea70455f8 /src/test/cpp/util/dummy_test.cc
parentda3099a0816f3c0e206a08962e5ffd77a0aac2de (diff)
Bazel client, Windows, tests: `rm -rf TEST_TMPDIR`
Add test helpers to recursively delete the TEST_TMPDIR in the TearDown method of tests, to ensure each test sees a fresh temp directory. Also add tests for these test helpers. -- PiperOrigin-RevId: 147135561 MOS_MIGRATED_REVID=147135561
Diffstat (limited to 'src/test/cpp/util/dummy_test.cc')
-rw-r--r--src/test/cpp/util/dummy_test.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/cpp/util/dummy_test.cc b/src/test/cpp/util/dummy_test.cc
new file mode 100644
index 0000000000..388e986a81
--- /dev/null
+++ b/src/test/cpp/util/dummy_test.cc
@@ -0,0 +1,19 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+#include <stdio.h>
+
+int main(int, char**) {
+ printf("INFO: This test is empty on this platform.\n");
+ return 0;
+}